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 #ifndef GRINLIZ_TYPES_INCLUDED
00027 #define GRINLIZ_TYPES_INCLUDED
00028
00029 #ifdef GL_NO_SDL
00030
00031
00032
00033 typedef unsigned char U8;
00034 typedef signed char S8;
00035 typedef unsigned short U16;
00036 typedef signed short S16;
00037 typedef unsigned long U32;
00038 typedef long S32;
00039
00040 #ifdef _MSC_VER
00041 typedef unsigned __int64 U64;
00042 typedef __int64 S64;
00043 #else
00044 typedef unsigned long long U64;
00045 typedef long long S64;
00046 #endif
00047
00048 #else
00049 #include "SDL_types.h"
00050
00051
00052 typedef Uint8 U8;
00053 typedef Sint8 S8;
00054 typedef Uint16 U16;
00055 typedef Sint16 S16;
00056 typedef Uint32 U32;
00057 typedef Sint32 S32;
00058
00059 #ifdef SDL_HAS_64BIT_TYPE
00060 typedef Sint64 S64;
00061 typedef Uint64 U64;
00062 #else
00063 #error No 64-bit integer.
00064 #endif
00065 #endif
00066
00067
00068 #if defined(_MSC_VER) && (_MSC_VER >= 1400 )
00069 #include <stdlib.h>
00070 typedef uintptr_t UPTR;
00071 typedef intptr_t SPTR;
00072 #elif defined (__GNUC__) && (__GNUC__ >= 3 )
00073 #include <inttypes.h>
00074 typedef uintptr_t UPTR;
00075 typedef intptr_t SPTR;
00076 #else
00077
00078 typedef U32 UPTR;
00079 typedef S32 SPTR;
00080 #endif
00081
00082 #endif