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 
00010 
00011 #ifndef  _MSC_VER
00012     #include <stdint.h>
00013     #include <inttypes.h>
00014 #else
00015     typedef signed char        int8_t;
00016     typedef unsigned char      uint8_t;
00017     typedef unsigned short     uint16_t;
00018     typedef short              int16_t;
00019     typedef unsigned int       uint32_t;
00020     typedef int                int32_t;
00021     typedef unsigned long long uint64_t;
00022     typedef long long          int64_t;
00023 #endif
00024 
00025 
00026 #ifndef _WIN32
00027     typedef struct {
00028         uint32_t  dwLowDateTime;
00029         uint32_t  dwHighDateTime;
00030     } FILETIME;
00031     // According to Jan Wolter, sys/param.h is the most portable source of endian
00032     // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html
00033     #include <sys/param.h>
00034 #else
00035     #include <windows.h>
00036     #define BYTE_ORDER LITTLE_ENDIAN
00037 #endif
00038 
00039 
00040 #endif

Generated on Fri Apr 17 13:00:34 2009 for libpst.so.2 by  doxygen 1.3.9.1