2007-10-02 Jonathan Chambers <joncham@gmail.com>
authorJonathan Chambers <joncham@gmail.com>
Tue, 2 Oct 2007 11:45:16 +0000 (11:45 -0000)
committerJonathan Chambers <joncham@gmail.com>
Tue, 2 Oct 2007 11:45:16 +0000 (11:45 -0000)
* mono-io-portability.c: Init __mono_io_portability_helpers
to PORTABILITY_NONE on windows as mono_portability_helpers_init
is not always called before mono_portability_find_file.

Code is contributed under MIT/X11 license.

svn path=/trunk/mono/; revision=86738

mono/utils/ChangeLog
mono/utils/mono-io-portability.c

index c4e16e98f796dc00dd1cc4957b79912a483036be..91c8deb72bb5a7fbbe1897672ae2565ac655467d 100644 (file)
@@ -1,3 +1,11 @@
+2007-10-02  Jonathan Chambers <joncham@gmail.com>
+
+       * mono-io-portability.c: Init __mono_io_portability_helpers
+       to PORTABILITY_NONE on windows as mono_portability_helpers_init
+       is not always called before mono_portability_find_file.
+       
+       Code is contributed under MIT/X11 license.
+
 2007-10-01  Jonathan Chambers <joncham@gmail.com>
 
        * mono-io-portability.c: Only support on non-Windows
index a1cad1fed8f092f63929bd183409e031b9c5c838..0f50172ef4ce4c0c6863568a882ddbb5a1cbe6da 100644 (file)
@@ -6,13 +6,12 @@
 #endif
 #include <mono/utils/mono-io-portability.h>
 
-int __mono_io_portability_helpers = PORTABILITY_UNKNOWN;
-
 #ifdef PLATFORM_WIN32
+int __mono_io_portability_helpers = PORTABILITY_NONE;
+
 void 
 mono_portability_helpers_init (void)
 {
-       __mono_io_portability_helpers = PORTABILITY_NONE;
 }
 
 gchar *
@@ -26,6 +25,8 @@ mono_portability_find_file (const gchar *pathname, gboolean last_exists)
 
 #include <dirent.h>
 
+int __mono_io_portability_helpers = PORTABILITY_UNKNOWN;
+
 void mono_portability_helpers_init (void)
 {
         const gchar *env;