[glib] Avoid struct stat issues with MSVC



commit 504b8b8f0125dcba530d4f34c4beaaa129cc5d85
Author: Tor Lillqvist <tml iki fi>
Date:   Sun Mar 21 14:50:45 2010 +0200

    Avoid struct stat issues with MSVC

 gio/giomodule.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/giomodule.c b/gio/giomodule.c
index b0a960b..1f2e0bc 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]