Adonthell 0.4
|
00001 // $Id: types.h,v 1.16 2002/04/25 15:34:11 gnurou Exp $ 00002 /* 00003 Copyright (C) 1999/2000/2001 Alexandre Courbot. 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License. 00007 This program is distributed in the hope that it will be useful, 00008 but WITHOUT ANY WARRANTY. 00009 See the COPYING file for more details. 00010 00011 */ 00012 00013 00014 /** @file types.h 00015 * @author Alexandre Courbot <alexandrecourbot@linuxgames.com> 00016 * @brief Declares some basic types. 00017 */ 00018 00019 00020 #ifndef TYPES_H__ 00021 #define TYPES_H__ 00022 00023 #include "SDL.h" 00024 00025 // We should put ifdefs here to put the correct int values accordingly to the system type 00026 00027 00028 /// 8 bits long unsigned integer 00029 #define u_int8 unsigned char 00030 00031 /// 16 bits long unsigned integer 00032 #define u_int16 unsigned short 00033 00034 /// 32 bits long unsigned integer 00035 #define u_int32 unsigned int 00036 00037 /// 8 bits long signed integer 00038 #define s_int8 signed char 00039 00040 /// 16 bits long signed integer 00041 #define s_int16 signed short 00042 00043 /// 32 bits long signed integer 00044 #define s_int32 signed int 00045 00046 00047 /* 00048 typedef Uint8 u_int8; 00049 typedef Uint16 u_int16; 00050 typedef Uint32 u_int32; 00051 typedef Sint8 s_int8; 00052 typedef Sint16 s_int16; 00053 typedef Sint32 s_int32; 00054 */ 00055 #endif