Internally use the _stati64 API explicitly on Windows
[platform/upstream/glib.git] / glib / gmappedfile.c
index 347f964..59a1a3e 100644 (file)
@@ -38,9 +38,8 @@
 #include <windows.h>
 #include <io.h>
 
-#ifdef _MSC_VER
-#define fstat(a,b) _fstat(a,b)
-#endif
+#define fstat(a,b) _fstati64(a,b)
+#define stat _stati64
 
 #endif