Types.h
Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 #if defined(WIN32) // msvc - 32 bit
00031     typedef unsigned int      uint;
00032     typedef signed int        sint;
00033     typedef unsigned char     uint8;
00034     typedef signed char       sint8;
00035     typedef unsigned short    uint16;
00036     typedef signed short      sint16;
00037     typedef unsigned int      uint32;
00038     typedef signed int        sint32;
00039     typedef unsigned __int64  uint64;
00040     typedef signed __int64    sint64;
00041     #define POINTER_SIZE      sizeof(void*)
00042     #define THREAD_LOCAL      __declspec(thread)
00043 #elif defined(linux)  // g++ - 32 bit
00044     typedef unsigned int      uint;
00045     typedef signed int        sint;
00046     typedef unsigned char     uint8;
00047     typedef signed char       sint8;
00048     typedef unsigned short    uint16;
00049     typedef signed short      sint16;
00050     typedef unsigned int      uint32;
00051     typedef signed int        sint32;
00052     typedef unsigned long long uint64;
00053     typedef signed long long  sint64;
00054     #define POINTER_SIZE      sizeof(void*)
00055     #define THREAD_LOCAL      __thread
00056 #else
00057     #error Unknown platform in types.h
00058 #endif