00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00022 #ifndef _SPEEX_TYPES_H
00023 #define _SPEEX_TYPES_H
00024
00025 #if defined(_WIN32)
00026
00027 # if defined(__CYGWIN__)
00028 # include <_G_config.h>
00029 typedef _G_int32_t spx_int32_t;
00030 typedef _G_uint32_t spx_uint32_t;
00031 typedef _G_int16_t spx_int16_t;
00032 typedef _G_uint16_t spx_uint16_t;
00033 # elif defined(__MINGW32__)
00034 typedef short spx_int16_t;
00035 typedef unsigned short spx_uint16_t;
00036 typedef int spx_int32_t;
00037 typedef unsigned int spx_uint32_t;
00038 # elif defined(__MWERKS__)
00039 typedef int spx_int32_t;
00040 typedef unsigned int spx_uint32_t;
00041 typedef short spx_int16_t;
00042 typedef unsigned short spx_uint16_t;
00043 # else
00044
00045 typedef __int32 spx_int32_t;
00046 typedef unsigned __int32 spx_uint32_t;
00047 typedef __int16 spx_int16_t;
00048 typedef unsigned __int16 spx_uint16_t;
00049 # endif
00050
00051 #elif defined(__MACOS__)
00052
00053 # include <sys/types.h>
00054 typedef SInt16 spx_int16_t;
00055 typedef UInt16 spx_uint16_t;
00056 typedef SInt32 spx_int32_t;
00057 typedef UInt32 spx_uint32_t;
00058
00059 #elif defined(__MACOSX__)
00060
00061 # include <sys/types.h>
00062 typedef int16_t spx_int16_t;
00063 typedef u_int16_t spx_uint16_t;
00064 typedef int32_t spx_int32_t;
00065 typedef u_int32_t spx_uint32_t;
00066
00067 #elif defined(__BEOS__)
00068
00069
00070 # include <inttypes.h>
00071 typedef int16_t spx_int16_t;
00072 typedef u_int16_t spx_uint16_t;
00073 typedef int32_t spx_int32_t;
00074 typedef u_int32_t spx_uint32_t;
00075
00076 #elif defined (__EMX__)
00077
00078
00079 typedef short spx_int16_t;
00080 typedef unsigned short spx_uint16_t;
00081 typedef int spx_int32_t;
00082 typedef unsigned int spx_uint32_t;
00083
00084 #elif defined (DJGPP)
00085
00086
00087 typedef short spx_int16_t;
00088 typedef int spx_int32_t;
00089 typedef unsigned int spx_uint32_t;
00090
00091 #elif defined(R5900)
00092
00093
00094 typedef int spx_int32_t;
00095 typedef unsigned spx_uint32_t;
00096 typedef short spx_int16_t;
00097
00098 #elif defined(__SYMBIAN32__)
00099
00100
00101 typedef signed short spx_int16_t;
00102 typedef unsigned short spx_uint16_t;
00103 typedef signed int spx_int32_t;
00104 typedef unsigned int spx_uint32_t;
00105
00106 #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X)
00107
00108 typedef short spx_int16_t;
00109 typedef unsigned short spx_uint16_t;
00110 typedef long spx_int32_t;
00111 typedef unsigned long spx_uint32_t;
00112
00113 #elif defined(CONFIG_TI_C6X)
00114
00115 typedef short spx_int16_t;
00116 typedef unsigned short spx_uint16_t;
00117 typedef int spx_int32_t;
00118 typedef unsigned int spx_uint32_t;
00119
00120 #else
00121
00122 # include <speex/speex_config_types.h>
00123
00124 #endif
00125
00126 #endif