Commit ab864e9c7156e76863a2375d8117a049cb90bf1b

Jacques Germishuys 2014-07-05T21:25:20

_stat64 is a function, __stat64 is the structure

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/win32/msvc-compat.h b/src/win32/msvc-compat.h
index 50865ed..f79acaa 100644
--- a/src/win32/msvc-compat.h
+++ b/src/win32/msvc-compat.h
@@ -15,7 +15,7 @@
 #	define R_OK 4 /* read mode check */
 
 #	define lseek _lseeki64
-#	define stat _stat64
+#	define stat __stat64
 #	define fstat _fstat64
 
 /* stat: file mode type testing macros */