comparison src/libpst.h @ 118:0f1492b7fe8b

patch from Fridrich Strba for building on mingw and general cleanup of autoconf files add processing for pst files of type 0x0f start adding support for properly building and installing libpst.so and the header files required to use it. remove version.h since the version number is now in config.h more const correctness issues regarding getopt()
author Carl Byington <carl@five-ten-sg.com>
date Sat, 31 Jan 2009 12:12:36 -0800
parents ed2a260bbb98
children 6395ced2b8b2
comparison
equal deleted inserted replaced
117:0a3d854b53f6 118:0f1492b7fe8b
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 _MSC_VER 13 #ifndef _WIN32
14 #include <stdint.h> 14 #include <stdint.h>
15 #include <inttypes.h> 15 #include <inttypes.h>
16 #ifndef FILETIME_DEFINED 16 #ifndef FILETIME_DEFINED
17 #define FILETIME_DEFINED 17 #define FILETIME_DEFINED
18 //Win32 Filetime struct - copied from WINE 18 //Win32 Filetime struct - copied from WINE
19 typedef struct { 19 typedef struct {
20 uint32_t dwLowDateTime; 20 uint32_t dwLowDateTime;
21 uint32_t dwHighDateTime; 21 uint32_t dwHighDateTime;
22 } FILETIME; 22 } FILETIME;
23 #endif 23 #endif
24 #endif 24 #endif
25 25
26 // According to Jan Wolter, sys/param.h is the most portable source of endian 26 // 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 27 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html
28 #ifdef _MSC_VER 28 #ifdef _WIN32
29 #define BYTE_ORDER LITTLE_ENDIAN 29 #define BYTE_ORDER LITTLE_ENDIAN
30 #else 30 #else
31 #include <sys/param.h> 31 #include <sys/param.h>
32 #endif // defined _MSC_VER 32 #endif // defined _WIN32
33 33
34 #if BYTE_ORDER == BIG_ENDIAN 34 #if BYTE_ORDER == BIG_ENDIAN
35 # define LE64_CPU(x) \ 35 # define LE64_CPU(x) \
36 x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \ 36 x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \
37 (((x) & UINT64_C(0x00ff000000000000)) >> 40) | \ 37 (((x) & UINT64_C(0x00ff000000000000)) >> 40) | \