Index: dso.c
===================================================================
RCS file: /home/cvspublic/apr/dso/win32/dso.c,v
retrieving revision 1.26
diff -u -r1.26 dso.c
--- dso.c   28 Dec 2001 23:50:48 -0000  1.26
+++ dso.c   28 Jan 2002 12:13:00 -0000
@@ -89,7 +89,7 @@
     UINT em;
 
 #if APR_HAS_UNICODE_FS
-    if (apr_os_level >= APR_WIN_NT) 
+    APR_OS_IS_UNICODE(apr_os_level) 
     {
         apr_wchar_t wpath[APR_PATH_MAX];
         if ((rv = utf8_to_unicode_path(wpath, sizeof(wpath) 
@@ -107,8 +107,9 @@
             rv = apr_get_os_error();
         SetErrorMode(em);
     }
-    else
 #endif
+#if APR_HAS_ANSI_FS
+    APR_OS_SUPPORT_ANSI
     {
         char fspec[APR_PATH_MAX], *p = fspec;
         /* Must convert path from / to \ notation.
@@ -132,6 +133,7 @@
             rv = APR_SUCCESS;
         SetErrorMode(em);
     }
+#endif
     *res_handle = apr_pcalloc(ctx, sizeof(**res_handle));
     (*res_handle)->cont = ctx;
 
@@ -156,8 +158,8 @@
                          struct apr_dso_handle_t *handle, 
                          const char *symname)
 {
-    *ressym = (apr_dso_handle_sym_t)GetProcAddress(handle->handle, symname);
 
+    *ressym = (apr_dso_handle_sym_t)GetProcAddress(handle->handle, symname);
     if (!*ressym) {
         return apr_get_os_error();
     }
