Mercurial > libpst
comparison src/libpst.h @ 120:6395ced2b8b2
disable building pst2dii on cygwin
consistent ordering of our include files
all system includes protected by ifdef HAVE_ from autoconf
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 01 Feb 2009 11:24:22 -0800 |
parents | 0f1492b7fe8b |
children | bdb38b434c0a |
comparison
equal
deleted
inserted
replaced
119:f50f4321aa2d | 120:6395ced2b8b2 |
---|---|
8 // Dave Smith - davesmith@users.sourceforge.net | 8 // Dave Smith - davesmith@users.sourceforge.net |
9 | 9 |
10 #ifndef LIBPST_H | 10 #ifndef LIBPST_H |
11 #define LIBPST_H | 11 #define LIBPST_H |
12 | 12 |
13 #ifndef _WIN32 | |
14 #include <stdint.h> | |
15 #include <inttypes.h> | |
16 #ifndef FILETIME_DEFINED | |
17 #define FILETIME_DEFINED | |
18 //Win32 Filetime struct - copied from WINE | |
19 typedef struct { | |
20 uint32_t dwLowDateTime; | |
21 uint32_t dwHighDateTime; | |
22 } FILETIME; | |
23 #endif | |
24 #endif | |
25 | |
26 // According to Jan Wolter, sys/param.h is the most portable source of endian | 13 // According to Jan Wolter, sys/param.h is the most portable source of endian |
27 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html | 14 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html |
28 #ifdef _WIN32 | 15 #ifdef _WIN32 |
29 #define BYTE_ORDER LITTLE_ENDIAN | 16 #define BYTE_ORDER LITTLE_ENDIAN |
30 #else | 17 #else |
31 #include <sys/param.h> | 18 #ifdef HAVE_SYS_PARAM_H |
19 #include <sys/param.h> | |
20 #endif | |
32 #endif // defined _WIN32 | 21 #endif // defined _WIN32 |
33 | 22 |
34 #if BYTE_ORDER == BIG_ENDIAN | 23 #if BYTE_ORDER == BIG_ENDIAN |
35 # define LE64_CPU(x) \ | 24 # define LE64_CPU(x) \ |
36 x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \ | 25 x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \ |