speex_types.h
上传用户:wstnjxml
上传日期:2014-04-03
资源大小:7248k
文件大小:4k
源码类别:

Windows CE

开发平台:

C/C++

  1. /* speex_types.h taken from libogg */
  2. /********************************************************************
  3.  *                                                                  *
  4.  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
  5.  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
  6.  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  7.  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
  8.  *                                                                  *
  9.  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
  10.  * by the Xiph.Org Foundation http://www.xiph.org/                  *
  11.  *                                                                  *
  12.  ********************************************************************
  13.  function: #ifdef jail to whip a few platforms into the UNIX ideal.
  14.  last mod: $Id: os_types.h 7524 2004-08-11 04:20:36Z conrad $
  15.  ********************************************************************/
  16. #ifndef _SPEEX_TYPES_H
  17. #define _SPEEX_TYPES_H
  18. #if defined(_WIN32) 
  19. #  if defined(__CYGWIN__)
  20. #    include <_G_config.h>
  21.      typedef _G_int64_t spx_int64_t;
  22.      typedef _G_int32_t spx_int32_t;
  23.      typedef _G_uint32_t spx_uint32_t;
  24.      typedef _G_int16_t spx_int16_t;
  25.      typedef _G_uint16_t spx_uint16_t;
  26. #  elif defined(__MINGW32__)
  27.      typedef short spx_int16_t;                                                                             
  28.      typedef unsigned short spx_uint16_t;                                                                   
  29.      typedef int spx_int32_t;                                                                               
  30.      typedef unsigned int spx_uint32_t;                                                                     
  31.      typedef long long spx_int64_t;                                                                         
  32.      typedef unsigned long long spx_uint64_t;  
  33. #  elif defined(__MWERKS__)
  34.      typedef long long spx_int64_t;
  35.      typedef int spx_int32_t;
  36.      typedef unsigned int spx_uint32_t;
  37.      typedef short spx_int16_t;
  38.      typedef unsigned short spx_uint16_t;
  39. #  else
  40.      /* MSVC/Borland */
  41.      typedef __int64 spx_int64_t;
  42.      typedef __int32 spx_int32_t;
  43.      typedef unsigned __int32 spx_uint32_t;
  44.      typedef __int16 spx_int16_t;
  45.      typedef unsigned __int16 spx_uint16_t;
  46. #  endif
  47. #elif defined(__MACOS__)
  48. #  include <sys/types.h>
  49.    typedef SInt16 spx_int16_t;
  50.    typedef UInt16 spx_uint16_t;
  51.    typedef SInt32 spx_int32_t;
  52.    typedef UInt32 spx_uint32_t;
  53.    typedef SInt64 spx_int64_t;
  54. #elif defined(__MACOSX__) /* MacOS X Framework build */
  55. #  include <sys/types.h>
  56.    typedef int16_t spx_int16_t;
  57.    typedef u_int16_t spx_uint16_t;
  58.    typedef int32_t spx_int32_t;
  59.    typedef u_int32_t spx_uint32_t;
  60.    typedef int64_t spx_int64_t;
  61. #elif defined(__BEOS__)
  62.    /* Be */
  63. #  include <inttypes.h>
  64.    typedef int16_t spx_int16_t;
  65.    typedef u_int16_t spx_uint16_t;
  66.    typedef int32_t spx_int32_t;
  67.    typedef u_int32_t spx_uint32_t;
  68.    typedef int64_t spx_int64_t;
  69. #elif defined (__EMX__)
  70.    /* OS/2 GCC */
  71.    typedef short spx_int16_t;
  72.    typedef unsigned short spx_uint16_t;
  73.    typedef int spx_int32_t;
  74.    typedef unsigned int spx_uint32_t;
  75.    typedef long long spx_int64_t;
  76. #elif defined (DJGPP)
  77.    /* DJGPP */
  78.    typedef short spx_int16_t;
  79.    typedef int spx_int32_t;
  80.    typedef unsigned int spx_uint32_t;
  81.    typedef long long spx_int64_t;
  82. #elif defined(R5900)
  83.    /* PS2 EE */
  84.    typedef long spx_int64_t;
  85.    typedef int spx_int32_t;
  86.    typedef unsigned spx_uint32_t;
  87.    typedef short spx_int16_t;
  88. #elif defined(__SYMBIAN32__)
  89.    /* Symbian GCC */
  90.    typedef signed short spx_int16_t;
  91.    typedef unsigned short spx_uint16_t;
  92.    typedef signed int spx_int32_t;
  93.    typedef unsigned int spx_uint32_t;
  94.    typedef long long int spx_int64_t;
  95. #else
  96. #  include <speex/speex_config_types.h>
  97. #endif
  98. #endif  /* _SPEEX_TYPES_H */