libpst.so.4
common.h
Go to the documentation of this file.
1 
2 #ifndef __PST_COMMON_H
3 #define __PST_COMMON_H
4 
5 
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <stdarg.h>
9 #include <time.h>
10 
11 
12 #if !defined(_MSC_VER) || (_MSC_VER >= 1800)
13  #include <stdint.h>
14  #include <inttypes.h>
15 #else
16  typedef signed char int8_t;
17  typedef unsigned char uint8_t;
18  typedef unsigned short uint16_t;
19  typedef short int16_t;
20  typedef unsigned int uint32_t;
21  typedef int int32_t;
22  typedef unsigned long long uint64_t;
23  typedef long long int64_t;
24 #endif
25 
26 #ifndef _WIN32
27  typedef struct {
28  uint32_t dwLowDateTime;
29  uint32_t dwHighDateTime;
30  } FILETIME;
31  // According to Jan Wolter, sys/param.h is the most portable source of endian
32  // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html
33  #include <sys/param.h>
34 #else
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
45  #define BYTE_ORDER LITTLE_ENDIAN
46 #endif
47 
48 
49 #endif
50 
51 #if defined (__SVR4) && defined (__sun)
52  #define LITTLE_ENDIAN 1234
53  #define BYTE_ORDER LITTLE_ENDIAN
54 #endif
uint32_t dwLowDateTime
Definition: common.h:28
uint32_t dwHighDateTime
Definition: common.h:29