comparison src/libpst.h @ 128:7f747c8c9d02

cleanup installed headers
author Carl Byington <carl@five-ten-sg.com>
date Thu, 05 Feb 2009 09:22:22 -0800
parents 23a36ac0514d
children e35fd42bac05
comparison
equal deleted inserted replaced
127:c2482d0cd84e 128:7f747c8c9d02
7 // LibPST - Library for Accessing Outlook .pst files 7 // LibPST - Library for Accessing Outlook .pst files
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
13
14 #if BYTE_ORDER == BIG_ENDIAN
15 # define LE64_CPU(x) \
16 x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \
17 (((x) & UINT64_C(0x00ff000000000000)) >> 40) | \
18 (((x) & UINT64_C(0x0000ff0000000000)) >> 24) | \
19 (((x) & UINT64_C(0x000000ff00000000)) >> 8 ) | \
20 (((x) & UINT64_C(0x00000000ff000000)) << 8 ) | \
21 (((x) & UINT64_C(0x0000000000ff0000)) << 24) | \
22 (((x) & UINT64_C(0x000000000000ff00)) << 40) | \
23 (((x) & UINT64_C(0x00000000000000ff)) << 56));
24 # define LE32_CPU(x) \
25 x = ((((x) & 0xff000000) >> 24) | \
26 (((x) & 0x00ff0000) >> 8 ) | \
27 (((x) & 0x0000ff00) << 8 ) | \
28 (((x) & 0x000000ff) << 24));
29 # define LE16_CPU(x) \
30 x = ((((x) & 0xff00) >> 8) | \
31 (((x) & 0x00ff) << 8));
32 #elif BYTE_ORDER == LITTLE_ENDIAN
33 # define LE64_CPU(x) {}
34 # define LE32_CPU(x) {}
35 # define LE16_CPU(x) {}
36 #else
37 # error "Byte order not supported by this library"
38 #endif // BYTE_ORDER
39 12
40 13
41 #define PST_TYPE_NOTE 1 14 #define PST_TYPE_NOTE 1
42 #define PST_TYPE_APPOINTMENT 8 15 #define PST_TYPE_APPOINTMENT 8
43 #define PST_TYPE_CONTACT 9 16 #define PST_TYPE_CONTACT 9