Index: userinfo.c
===================================================================
RCS file: /home/cvspublic/apr/user/win32/userinfo.c,v
retrieving revision 1.16
diff -u -r1.16 userinfo.c
--- userinfo.c  28 Dec 2001 23:50:49 -0000  1.16
+++ userinfo.c  28 Jan 2002 12:23:21 -0000
@@ -135,7 +135,8 @@
         return APR_FROM_OS_ERROR(rv);
 
 #if APR_HAS_UNICODE_FS
-    if (apr_os_level >= APR_WIN_NT) {
+    APR_OS_IS_UNICODE(apr_os_level)
+    {
 
         keylen = sizeof(regkey);
         rv = RegQueryValueExW(key, L"ProfileImagePath", NULL, &type,
@@ -162,8 +163,9 @@
         else
             return APR_ENOENT;
     }
-    else
-#endif /* APR_HAS_UNICODE_FS */
+#endif
+#if APR_HAS_ANSI_FS
+    APR_OS_SUPPORT_ANSI
     {
         keylen = sizeof(regkey);
         rv = RegQueryValueEx(key, "ProfileImagePath", NULL, &type,
@@ -182,6 +184,7 @@
         else
             return APR_ENOENT;
     }
+#endif /* APR_HAS_ANSI_FS */
     for (fixch = *dirname; *fixch; ++fixch)
         if (*fixch == '\\')
             *fixch = '/';
