8 #if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN)
9 #if BYTE_ORDER == LITTLE_ENDIAN
10 #define IS_LITTLE_ENDIAN
11 #elif BYTE_ORDER == BIG_ENDIAN
15 /* all of the platforms that we use _MSC_VER on are little endian
16 * so this is sufficient for now */
18 #define IS_LITTLE_ENDIAN
22 #define IS_LITTLE_ENDIAN
26 #if !defined(IS_LITTLE_ENDIAN) && !defined(IS_BIG_ENDIAN)
27 #error Unknown endianess
30 #if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || defined (_sgi) || defined (__sun) || defined (sun) || defined (__digital__)
31 # include <inttypes.h>
32 #elif defined (_MSC_VER) && _MSC_VER < 1600
33 typedef __int8
int8_t;
34 typedef unsigned __int8
uint8_t;
35 typedef __int16
int16_t;
36 typedef unsigned __int16
uint16_t;
37 typedef __int32
int32_t;
38 typedef unsigned __int32
uint32_t;
39 typedef __int64
int64_t;
40 typedef unsigned __int64
uint64_t;
42 typedef unsigned __int64
uintptr_t;
44 typedef unsigned long uintptr_t;
48 # include <sys/inttypes.h>