# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1327687084 0 # Node ID 1fb62c442283e0f8e98faf64ac60bb924ba8db1e # Parent 525c4c9d04c697df827d73c4e0ae95693f1d53e3 Added dwstat #define in compat.h which will be the 64bit stat struct if available on the given platform. diff -r 525c4c9d04c6 -r 1fb62c442283 compat.h --- 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 #include +#define dwstat stat #endif #include