00001 /* 00002 Copyright (c) 2000-2003 Lee Thomason (www.grinninglizard.com) 00003 00004 Grinning Lizard Utilities. Note that software that uses the 00005 utility package (including Lilith3D and Kyra) have more restrictive 00006 licences which applies to code outside of the utility package. 00007 00008 00009 This software is provided 'as-is', without any express or implied 00010 warranty. In no event will the authors be held liable for any 00011 damages arising from the use of this software. 00012 00013 Permission is granted to anyone to use this software for any 00014 purpose, including commercial applications, and to alter it and 00015 redistribute it freely, subject to the following restrictions: 00016 00017 1. The origin of this software must not be misrepresented; you must 00018 not claim that you wrote the original software. If you use this 00019 software in a product, an acknowledgment in the product documentation 00020 would be appreciated but is not required. 00021 00022 2. Altered source versions must be plainly marked as such, and 00023 must not be misrepresented as being the original software. 00024 00025 3. This notice may not be removed or altered from any source 00026 distribution. 00027 */ 00028 00029 #ifndef GL_TYPES_INCLUDED 00030 #define GL_TYPES_INCLUDED 00031 00032 // #if defined( _SDL_H ) 00033 #include "SDL_types.h" 00034 00035 typedef Uint8 U8; 00036 typedef Sint8 S8; 00037 typedef Uint16 U16; 00038 typedef Sint16 S16; 00039 typedef Uint32 U32; 00040 typedef Sint32 S32; 00041 00042 #ifdef SDL_HAS_64BIT_TYPE 00043 typedef SDL_HAS_64BIT_TYPE S64; 00044 typedef unsigned SDL_HAS_64BIT_TYPE U64; 00045 #else 00046 #error No 64-bit integer. 00047 #endif 00048 00049 // #elif defined ( GL_INT64 ) 00050 // 00051 // typedef unsigned char U8; 00052 // typedef signed char S8; 00053 // typedef unsigned short U16; 00054 // typedef signed short S16; 00055 // typedef unsigned int U32; 00056 // typedef signed int S32; 00057 // 00058 // typedef GL_INT64 S64; 00059 // typedef unsigned GL_INT64 U64; 00060 // 00061 // #else 00062 // // NOTE: This usually means that the SDL header was not 00063 // // included before a Kyra header, or that the standard 00064 // // types were not defined. 00065 // #error Need to get type data for this system. 00066 // #endif 00067 00068 00069 #endif