Fix GStatBuf definition for win32 when building against older glib.
authorMichael Smith <msmith@songbirdnest.com>
Thu, 23 Dec 2010 00:36:09 +0000 (16:36 -0800)
committerMichael Smith <msmith@songbirdnest.com>
Thu, 23 Dec 2010 00:36:50 +0000 (16:36 -0800)
Now matches upstream glib definition.

gst/glib-compat-private.h

index 5510d00..f653ccb 100644 (file)
 G_BEGIN_DECLS
 
 #if !GLIB_CHECK_VERSION(2,25,0)
+
+#if defined (_MSC_VER) && !defined(_WIN64)
+typedef struct _stat32 GStatBuf;
+#else
 typedef struct stat GStatBuf;
 #endif
 
+#endif
+
 #if GLIB_CHECK_VERSION(2,26,0)
 #define GLIB_HAS_GDATETIME
 #endif