00001
00002 #ifndef __COMMON_H
00003 #define __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 uint32_t DWORD;
00028 typedef uint16_t WORD;
00029 typedef uint8_t BYTE;
00030 typedef uint32_t UINT32;
00031 typedef struct {
00032 DWORD dwLowDateTime;
00033 DWORD dwHighDateTime;
00034 } FILETIME;
00035
00036
00037 #include <sys/param.h>
00038 #else
00039 #include <windows.h>
00040 #define BYTE_ORDER LITTLE_ENDIAN
00041 #endif
00042
00043
00044 #endif