# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1327791552 0 # Node ID 34d970f3ff2388c5d2b7f0b8aeb84b90248a5d34 # Parent 021d2966f84d72cc009259aaaa7bc1e504d8ff70 Added 64bit stat and alloca functionality when building with Watcom. diff -r 021d2966f84d -r 34d970f3ff23 compat.h --- a/compat.h Fri Jan 27 20:59:59 2012 +0000 +++ b/compat.h Sat Jan 28 22:59:12 2012 +0000 @@ -38,6 +38,19 @@ #undef DIRSEP #endif +#ifdef __WATCOMC__ +#include +#include +#include +# ifdef _stati64 +# ifdef stat +# undef stat +# endif +# define stat(a, b) _stati64(a, b) +# define dwstat _stati64 +# endif +#endif + #if defined(__EMX__) || defined(__OS2__) || defined(__WIN32__) || defined(WINNT) #include #include