Mercurial > libpst
diff src/common.h @ 229:e7f363452178
patch from Fridrich Strba for undefined ENDIAN
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 04 Sep 2009 08:06:22 -0700 |
parents | 5f3fa53cb0e1 |
children | 5a82d41c883d |
line wrap: on
line diff
--- a/src/common.h Thu Sep 03 15:16:53 2009 -0700 +++ b/src/common.h Fri Sep 04 08:06:22 2009 -0700 @@ -23,7 +23,6 @@ typedef long long int64_t; #endif - #ifndef _WIN32 typedef struct { uint32_t dwLowDateTime; @@ -34,6 +33,15 @@ #include <sys/param.h> #else #include <windows.h> +#endif + +#if defined(_WIN32) || defined(__DJGPP__) + #ifndef LITTLE_ENDIAN + #define LITTLE_ENDIAN 1234 + #endif + #ifndef BIG_ENDIAN + #define BIG_ENDIAN 4321 + #endif #define BYTE_ORDER LITTLE_ENDIAN #endif