2007-10-02 Jonathan Chambers <joncham@gmail.com>
[mono.git] / mono / utils / mono-io-portability.c
index f42185512c7446780828ec5a182882bd66e94a41..0f50172ef4ce4c0c6863568a882ddbb5a1cbe6da 100644 (file)
@@ -4,9 +4,27 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#include <dirent.h>
 #include <mono/utils/mono-io-portability.h>
 
+#ifdef PLATFORM_WIN32
+int __mono_io_portability_helpers = PORTABILITY_NONE;
+
+void 
+mono_portability_helpers_init (void)
+{
+}
+
+gchar *
+mono_portability_find_file (const gchar *pathname, gboolean last_exists)
+{
+       g_assert_not_reached();
+       return NULL;
+}
+
+#else
+
+#include <dirent.h>
+
 int __mono_io_portability_helpers = PORTABILITY_UNKNOWN;
 
 void mono_portability_helpers_init (void)
@@ -314,3 +332,6 @@ gchar *mono_portability_find_file (const gchar *pathname, gboolean last_exists)
        g_free (new_pathname);
        return(NULL);
 }
+
+
+#endif