speex_types.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. /**
  17. @file speex_types.h
  18. @brief Speex types
  19. */
  20. #ifndef _SPEEX_TYPES_H
  21. #define _SPEEX_TYPES_H
  22. #if defined(_WIN32)
  23. # if defined(__CYGWIN__)
  24. # include <_G_config.h>
  25. typedef _G_int32_t spx_int32_t;
  26. typedef _G_uint32_t spx_uint32_t;
  27. typedef _G_int16_t spx_int16_t;
  28. typedef _G_uint16_t spx_uint16_t;
  29. # elif defined(__MINGW32__)
  30. typedef short spx_int16_t;
  31. typedef unsigned short spx_uint16_t;
  32. typedef int spx_int32_t;
  33. typedef unsigned int spx_uint32_t;
  34. # elif defined(__MWERKS__)
  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 __int32 spx_int32_t;
  42. typedef unsigned __int32 spx_uint32_t;
  43. typedef __int16 spx_int16_t;
  44. typedef unsigned __int16 spx_uint16_t;
  45. # endif
  46. #elif defined(__MACOS__)
  47. # include <sys/types.h>
  48. typedef SInt16 spx_int16_t;
  49. typedef UInt16 spx_uint16_t;
  50. typedef SInt32 spx_int32_t;
  51. typedef UInt32 spx_uint32_t;
  52. #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
  53. # include <sys/types.h>
  54. typedef int16_t spx_int16_t;
  55. typedef u_int16_t spx_uint16_t;
  56. typedef int32_t spx_int32_t;
  57. typedef u_int32_t spx_uint32_t;
  58. #elif defined(__BEOS__)
  59. /* Be */
  60. # include <inttypes.h>
  61. typedef int16_t spx_int16_t;
  62. typedef u_int16_t spx_uint16_t;
  63. typedef int32_t spx_int32_t;
  64. typedef u_int32_t spx_uint32_t;
  65. #elif defined (__EMX__)
  66. /* OS/2 GCC */
  67. typedef short spx_int16_t;
  68. typedef unsigned short spx_uint16_t;
  69. typedef int spx_int32_t;
  70. typedef unsigned int spx_uint32_t;
  71. #elif defined (DJGPP)
  72. /* DJGPP */
  73. typedef short spx_int16_t;
  74. typedef int spx_int32_t;
  75. typedef unsigned int spx_uint32_t;
  76. #elif defined(R5900)
  77. /* PS2 EE */
  78. typedef int spx_int32_t;
  79. typedef unsigned spx_uint32_t;
  80. typedef short spx_int16_t;
  81. #elif defined(__SYMBIAN32__)
  82. /* Symbian GCC */
  83. typedef signed short spx_int16_t;
  84. typedef unsigned short spx_uint16_t;
  85. typedef signed int spx_int32_t;
  86. typedef unsigned int spx_uint32_t;
  87. #elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X)
  88. typedef short spx_int16_t;
  89. typedef unsigned short spx_uint16_t;
  90. typedef long spx_int32_t;
  91. typedef unsigned long spx_uint32_t;
  92. #elif defined(CONFIG_TI_C6X)
  93. typedef short spx_int16_t;
  94. typedef unsigned short spx_uint16_t;
  95. typedef int spx_int32_t;
  96. typedef unsigned int spx_uint32_t;
  97. #else
  98. # include <speex_config_types.h>
  99. #endif
  100. #endif /* _SPEEX_TYPES_H */