Mercurial > libpst
comparison 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 |
comparison
equal
deleted
inserted
replaced
228:be1009c92ac2 | 229:e7f363452178 |
---|---|
21 typedef int int32_t; | 21 typedef int int32_t; |
22 typedef unsigned long long uint64_t; | 22 typedef unsigned long long uint64_t; |
23 typedef long long int64_t; | 23 typedef long long int64_t; |
24 #endif | 24 #endif |
25 | 25 |
26 | |
27 #ifndef _WIN32 | 26 #ifndef _WIN32 |
28 typedef struct { | 27 typedef struct { |
29 uint32_t dwLowDateTime; | 28 uint32_t dwLowDateTime; |
30 uint32_t dwHighDateTime; | 29 uint32_t dwHighDateTime; |
31 } FILETIME; | 30 } FILETIME; |
32 // According to Jan Wolter, sys/param.h is the most portable source of endian | 31 // According to Jan Wolter, sys/param.h is the most portable source of endian |
33 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html | 32 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html |
34 #include <sys/param.h> | 33 #include <sys/param.h> |
35 #else | 34 #else |
36 #include <windows.h> | 35 #include <windows.h> |
36 #endif | |
37 | |
38 #if defined(_WIN32) || defined(__DJGPP__) | |
39 #ifndef LITTLE_ENDIAN | |
40 #define LITTLE_ENDIAN 1234 | |
41 #endif | |
42 #ifndef BIG_ENDIAN | |
43 #define BIG_ENDIAN 4321 | |
44 #endif | |
37 #define BYTE_ORDER LITTLE_ENDIAN | 45 #define BYTE_ORDER LITTLE_ENDIAN |
38 #endif | 46 #endif |
39 | 47 |
40 | 48 |
41 #endif | 49 #endif |