Avoid struct stat issues with MSVC
authorTor Lillqvist <tml@iki.fi>
Sun, 21 Mar 2010 12:50:45 +0000 (14:50 +0200)
committerTor Lillqvist <tml@iki.fi>
Sun, 21 Mar 2010 12:50:45 +0000 (14:50 +0200)
gio/giomodule.c

index b0a960b..1f2e0bc 100644 (file)
@@ -270,7 +270,11 @@ g_io_modules_scan_all_in_directory (const char *dirname)
   const gchar *name;
   char *filename;
   GDir *dir;
+#ifdef G_OS_WIN32
+  struct _g_stat_struct statbuf;
+#else
   struct stat statbuf;
+#endif
   char *data;
   time_t cache_mtime;
   GHashTable *cache;