speex_types.h

Go to the documentation of this file.
00001 /* speex_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 _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      /* MSVC/Borland */
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(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
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    /* Be */
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    /* OS/2 GCC */
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    /* DJGPP */
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    /* PS2 EE */
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    /* Symbian GCC */
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  /* _SPEEX_TYPES_H */

Generated on Wed Feb 25 11:19:27 2009 for Speex by  doxygen 1.5.1