Main Page | Modules | File List | File Members

# GSTypes.h

    00001 #ifndef __GSTYPES_H__
    00002 #define __GSTYPES_H__
    00003
    00004 #if defined ( GS_LINUX )
    00005
    00006 #include <stdlib.h>
    00007 // calling methods
    00008 #define __stdcall
    00009 #define __cdecl
    00010
    00011 // Special types
    00012 typedef unsigned char GSbool;
    00013 typedef void GSvoid;
    00014 typedef size_t GSsize_t;
    00015
    00016 // Signed types
    00017 typedef char GSbyte;
    00018 typedef char GSchar;
    00019 typedef short GSshort;
    00020 typedef int GSint;
    00021 typedef long long GSlong;
    00022 typedef float GSfloat;
    00023 typedef double GSdouble;
    00024
    00025 // Unsigned types
    00026 typedef unsigned char GSubyte;
    00027 typedef unsigned char GSuchar;
    00028 typedef unsigned short GSushort;
    00029 typedef unsigned int GSuint;
    00030 typedef unsigned long long GSulong;
    00031
    00032 #elif defined ( GS_WIN32 )
    00033
    00034 // Special types
    00035 typedef unsigned char GSbool;
    00036 typedef void GSvoid;
    00037 typedef size_t GSsize_t;
    00038
    00039 // Signed types
    00040 typedef char GSbyte;
    00041 typedef char GSchar;
    00042 typedef short GSshort;
    00043 typedef int GSint;
    00044 typedef __int64 GSlong;
    00045 typedef float GSfloat;
    00046 typedef double GSdouble;
    00047
    00048 // Unsigned types
    00049 typedef unsigned char GSubyte;
    00050 typedef unsigned char GSuchar;
    00051 typedef unsigned short GSushort;
    00052 typedef unsigned int GSuint;
    00053 typedef unsigned __int64 GSulong;
    00054
    00055 #elif defined ( GS_PSX2 )
    00056 #include <stdlib.h>
    00057 // calling methods
    00058 #define __stdcall
    00059 #define __cdecl
    00060
    00061 // Special types
    00062 typedef unsigned char GSbool;
    00063 typedef void GSvoid;
    00064 typedef size_t GSsize_t;
    00065
    00066 // Signed types
    00067 typedef char GSbyte;
    00068 typedef char GSchar;
    00069 typedef short GSshort;
    00070 typedef int GSint;
    00071 typedef long GSlong;
    00072 typedef float GSfloat;
    00073 typedef double GSdouble;
    00074
    00075 // Unsigned types
    00076 typedef unsigned char GSubyte;
    00077 typedef unsigned char GSuchar;
    00078 typedef unsigned short GSushort;
    00079 typedef unsigned int GSuint;
    00080 typedef unsigned long GSulong;
    00081
    00082 #elif defined ( GS_XBOX )
    00083
    00084 // Special types
    00085 typedef unsigned char GSbool;
    00086 typedef void GSvoid;
    00087 typedef size_t GSsize_t;
    00088
    00089 // Signed types
    00090 typedef char GSbyte;
    00091 typedef char GSchar;
    00092 typedef short GSshort;
    00093 typedef int GSint;
    00094 typedef __int64 GSlong;
    00095 typedef float GSfloat;
    00096 typedef double GSdouble;
    00097
    00098 // Unsigned types
    00099 typedef unsigned char GSubyte;
    00100 typedef unsigned char GSuchar;
    00101 typedef unsigned short GSushort;
    00102 typedef unsigned int GSuint;
    00103 typedef unsigned __int64 GSulong;
    00104
    00105 #elif defined ( GS_WIN64 )
    00106
    00107 // Special types
    00108 typedef unsigned char GSbool;
    00109 typedef void GSvoid;
    00110 typedef size_t GSsize_t;
    00111
    00112 // Signed types
    00113 typedef char GSbyte;
    00114 typedef char GSchar;
    00115 typedef short GSshort;
    00116 typedef int GSint;
    00117 typedef __int64 GSlong;
    00118 typedef float GSfloat;
    00119 typedef double GSdouble;
    00120
    00121 // Unsigned types
    00122 typedef unsigned char GSubyte;
    00123 typedef unsigned char GSuchar;
    00124 typedef unsigned short GSushort;
    00125 typedef unsigned int GSuint;
    00126 typedef unsigned __int64 GSulong;
    00127
    00128 #endif
    00129
    00130 // For GSbool
    00131 #define GS_TRUE                           1
    00132 #define GS_FALSE                          0
    00133
    00134 // Special type for instances identification
    00135 #ifdef GSvoid
    00136 typedef GSvoid* GShandle;
    00137 #else
    00138 typedef void* GShandle;
    00139 #endif
    00140
    00141 #endif // __GSTYPES_H__
    00142
    00143
    00144

Ubi.com GameService SDK - ©UbiSoft Entertainment 2002
GameService development team