CELT
0.8.1
|
00001 /* celt_types.h taken from libogg */ 00002 /******************************************************************** 00003 * * 00004 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * 00005 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * 00006 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * 00007 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * 00008 * * 00009 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 * 00010 * by the Xiph.Org Foundation http://www.xiph.org/ * 00011 * * 00012 ******************************************************************** 00013 00014 function: #ifdef jail to whip a few platforms into the UNIX ideal. 00015 last mod: $Id: os_types.h 7524 2004-08-11 04:20:36Z conrad $ 00016 00017 ********************************************************************/ 00022 #ifndef _CELT_TYPES_H 00023 #define _CELT_TYPES_H 00024 00025 /* Use the real stdint.h if it's there (taken from Paul Hsieh's pstdint.h) */ 00026 #if (defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_)) || defined (HAVE_STDINT_H)) 00027 #include <stdint.h> 00028 00029 typedef int16_t celt_int16; 00030 typedef uint16_t celt_uint16; 00031 typedef int32_t celt_int32; 00032 typedef uint32_t celt_uint32; 00033 #elif defined(_WIN32) 00034 00035 # if defined(__CYGWIN__) 00036 # include <_G_config.h> 00037 typedef _G_int32_t celt_int32; 00038 typedef _G_uint32_t celt_uint32; 00039 typedef _G_int16 celt_int16; 00040 typedef _G_uint16 celt_uint16; 00041 # elif defined(__MINGW32__) 00042 typedef short celt_int16; 00043 typedef unsigned short celt_uint16; 00044 typedef int celt_int32; 00045 typedef unsigned int celt_uint32; 00046 # elif defined(__MWERKS__) 00047 typedef int celt_int32; 00048 typedef unsigned int celt_uint32; 00049 typedef short celt_int16; 00050 typedef unsigned short celt_uint16; 00051 # else 00052 /* MSVC/Borland */ 00053 typedef __int32 celt_int32; 00054 typedef unsigned __int32 celt_uint32; 00055 typedef __int16 celt_int16; 00056 typedef unsigned __int16 celt_uint16; 00057 # endif 00058 00059 #elif defined(__MACOS__) 00060 00061 # include <sys/types.h> 00062 typedef SInt16 celt_int16; 00063 typedef UInt16 celt_uint16; 00064 typedef SInt32 celt_int32; 00065 typedef UInt32 celt_uint32; 00066 00067 #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */ 00068 00069 # include <sys/types.h> 00070 typedef int16 celt_int16; 00071 typedef u_int16 celt_uint16; 00072 typedef int32_t celt_int32; 00073 typedef u_int32_t celt_uint32; 00074 00075 #elif defined(__BEOS__) 00076 00077 /* Be */ 00078 # include <inttypes.h> 00079 typedef int16 celt_int16; 00080 typedef u_int16 celt_uint16; 00081 typedef int32_t celt_int32; 00082 typedef u_int32_t celt_uint32; 00083 00084 #elif defined (__EMX__) 00085 00086 /* OS/2 GCC */ 00087 typedef short celt_int16; 00088 typedef unsigned short celt_uint16; 00089 typedef int celt_int32; 00090 typedef unsigned int celt_uint32; 00091 00092 #elif defined (DJGPP) 00093 00094 /* DJGPP */ 00095 typedef short celt_int16; 00096 typedef unsigned short celt_uint16; 00097 typedef int celt_int32; 00098 typedef unsigned int celt_uint32; 00099 00100 #elif defined(R5900) 00101 00102 /* PS2 EE */ 00103 typedef int celt_int32; 00104 typedef unsigned celt_uint32; 00105 typedef short celt_int16; 00106 typedef unsigned short celt_uint16; 00107 00108 #elif defined(__SYMBIAN32__) 00109 00110 /* Symbian GCC */ 00111 typedef signed short celt_int16; 00112 typedef unsigned short celt_uint16; 00113 typedef signed int celt_int32; 00114 typedef unsigned int celt_uint32; 00115 00116 #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X) 00117 00118 typedef short celt_int16; 00119 typedef unsigned short celt_uint16; 00120 typedef long celt_int32; 00121 typedef unsigned long celt_uint32; 00122 00123 #elif defined(CONFIG_TI_C6X) 00124 00125 typedef short celt_int16; 00126 typedef unsigned short celt_uint16; 00127 typedef int celt_int32; 00128 typedef unsigned int celt_uint32; 00129 00130 #else 00131 00132 /* Give up, take a reasonable guess */ 00133 typedef short celt_int16; 00134 typedef unsigned short celt_uint16; 00135 typedef int celt_int32; 00136 typedef unsigned int celt_uint32; 00137 00138 #endif 00139 00140 #endif /* _CELT_TYPES_H */