changeset 1584:1fb62c442283

Added dwstat #define in compat.h which will be the 64bit stat struct if available on the given platform.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 27 Jan 2012 17:58:04 +0000
parents 525c4c9d04c6
children 0576c5444587
files compat.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/compat.h	Thu Jan 26 14:36:48 2012 +0000
+++ b/compat.h	Fri Jan 27 17:58:04 2012 +0000
@@ -144,9 +144,15 @@
 #ifdef MSVC
 #include "platform/dirent.h"
 #define alloca _alloca
+#ifdef __stat64
+#undef stat
+#define stat(a, b) _stat64(a, b)
+#define dwstat __stat64
+#endif
 #else
 #include <dir.h>
 #include <dirent.h>
+#define dwstat stat
 #endif
 
 #include <stdarg.h>