path: root/compat/mingw.h
diff options
authorJohannes Schindelin <>2009-03-07 14:37:18 (GMT)
committerJunio C Hamano <>2009-03-07 20:22:13 (GMT)
commitd5e31235f2df3d54930c79f46fb7a7e2394899d0 (patch)
tree9e402d6b7bd63207e64d48faa4156ee798b09884 /compat/mingw.h
parentd0baf91db871fdd129057d7844d17457575698ba (diff)
Brown paper bag fix for MinGW 64-bit stat
When overriding the identifier "stat" so that "struct stat" will be substituted with "struct _stati64" everywhere, I tried to fix the calls to the _function_ stat(), too, but I forgot to change the earlier attempt "stat64" to "_stati64" there. So, the stat() calls were overridden by calls to _stati64() instead. Unfortunately, there is a function _stati64() so that I missed that calls to stat() were not actually overridden by calls to mingw_lstat(), but showed the error. Signed-off-by: Johannes Schindelin <> Acked-by: Johannes Sixt <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'compat/mingw.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index cb9c4d4..6e24686 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -170,7 +170,7 @@ int mingw_lstat(const char *file_name, struct stat *buf);
int mingw_fstat(int fd, struct stat *buf);
#define fstat mingw_fstat
#define lstat mingw_lstat
-#define stat64(x,y) mingw_lstat(x,y)
+#define _stati64(x,y) mingw_lstat(x,y)
int mingw_utime(const char *file_name, const struct utimbuf *times);
#define utime mingw_utime