Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

common.h

Go to the documentation of this file.
00001 
00002 #ifndef __PST_COMMON_H
00003 #define __PST_COMMON_H
00004 
00005 
00006 #include <stdlib.h>
00007 #include <stdio.h>
00008 #include <stdarg.h>
00009 #include <time.h>
00010 
00011 
00012 #ifndef  _MSC_VER
00013     #include <stdint.h>
00014     #include <inttypes.h>
00015 #else
00016     typedef signed char        int8_t;
00017     typedef unsigned char      uint8_t;
00018     typedef unsigned short     uint16_t;
00019     typedef short              int16_t;
00020     typedef unsigned int       uint32_t;
00021     typedef int                int32_t;
00022     typedef unsigned long long uint64_t;
00023     typedef long long          int64_t;
00024 #endif
00025 
00026 
00027 #ifndef _WIN32
00028     typedef struct {
00029         uint32_t  dwLowDateTime;
00030         uint32_t  dwHighDateTime;
00031     } FILETIME;
00032     // According to Jan Wolter, sys/param.h is the most portable source of endian
00033     // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html
00034     #include <sys/param.h>
00035 #else
00036     #include <windows.h>
00037     #define BYTE_ORDER LITTLE_ENDIAN
00038 #endif
00039 
00040 
00041 #endif

Generated on Tue Jun 23 20:30:41 2009 for libpst.so.4 by  doxygen 1.3.9.1