~ubuntu-branches/ubuntu/hardy/speex/hardy-security

« back to all changes in this revision

Viewing changes to include/speex/speex_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2005-12-07 23:22:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051207232221-nme7vf9m182p7dpe
Tags: 1.1.11.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
14
 function: #ifdef jail to whip a few platforms into the UNIX ideal.
 
15
 last mod: $Id: os_types.h 7524 2004-08-11 04:20:36Z conrad $
 
16
 
 
17
 ********************************************************************/
 
18
/**
 
19
   @file speex_types.h
 
20
   @brief Speex types
 
21
*/
 
22
#ifndef _SPEEX_TYPES_H
 
23
#define _SPEEX_TYPES_H
 
24
 
 
25
#if defined(_WIN32) 
 
26
 
 
27
#  if defined(__CYGWIN__)
 
28
#    include <_G_config.h>
 
29
     typedef _G_int64_t spx_int64_t;
 
30
     typedef _G_int32_t spx_int32_t;
 
31
     typedef _G_uint32_t spx_uint32_t;
 
32
     typedef _G_int16_t spx_int16_t;
 
33
     typedef _G_uint16_t spx_uint16_t;
 
34
#  elif defined(__MINGW32__)
 
35
     typedef short spx_int16_t;                                                                             
 
36
     typedef unsigned short spx_uint16_t;                                                                   
 
37
     typedef int spx_int32_t;                                                                               
 
38
     typedef unsigned int spx_uint32_t;                                                                     
 
39
     typedef long long spx_int64_t;                                                                         
 
40
     typedef unsigned long long spx_uint64_t;  
 
41
#  elif defined(__MWERKS__)
 
42
     typedef long long spx_int64_t;
 
43
     typedef int spx_int32_t;
 
44
     typedef unsigned int spx_uint32_t;
 
45
     typedef short spx_int16_t;
 
46
     typedef unsigned short spx_uint16_t;
 
47
#  else
 
48
     /* MSVC/Borland */
 
49
     typedef __int64 spx_int64_t;
 
50
     typedef __int32 spx_int32_t;
 
51
     typedef unsigned __int32 spx_uint32_t;
 
52
     typedef __int16 spx_int16_t;
 
53
     typedef unsigned __int16 spx_uint16_t;
 
54
#  endif
 
55
 
 
56
#elif defined(__MACOS__)
 
57
 
 
58
#  include <sys/types.h>
 
59
   typedef SInt16 spx_int16_t;
 
60
   typedef UInt16 spx_uint16_t;
 
61
   typedef SInt32 spx_int32_t;
 
62
   typedef UInt32 spx_uint32_t;
 
63
   typedef SInt64 spx_int64_t;
 
64
 
 
65
#elif defined(__MACOSX__) /* MacOS X Framework build */
 
66
 
 
67
#  include <sys/types.h>
 
68
   typedef int16_t spx_int16_t;
 
69
   typedef u_int16_t spx_uint16_t;
 
70
   typedef int32_t spx_int32_t;
 
71
   typedef u_int32_t spx_uint32_t;
 
72
   typedef int64_t spx_int64_t;
 
73
 
 
74
#elif defined(__BEOS__)
 
75
 
 
76
   /* Be */
 
77
#  include <inttypes.h>
 
78
   typedef int16_t spx_int16_t;
 
79
   typedef u_int16_t spx_uint16_t;
 
80
   typedef int32_t spx_int32_t;
 
81
   typedef u_int32_t spx_uint32_t;
 
82
   typedef int64_t spx_int64_t;
 
83
 
 
84
#elif defined (__EMX__)
 
85
 
 
86
   /* OS/2 GCC */
 
87
   typedef short spx_int16_t;
 
88
   typedef unsigned short spx_uint16_t;
 
89
   typedef int spx_int32_t;
 
90
   typedef unsigned int spx_uint32_t;
 
91
   typedef long long spx_int64_t;
 
92
 
 
93
#elif defined (DJGPP)
 
94
 
 
95
   /* DJGPP */
 
96
   typedef short spx_int16_t;
 
97
   typedef int spx_int32_t;
 
98
   typedef unsigned int spx_uint32_t;
 
99
   typedef long long spx_int64_t;
 
100
 
 
101
#elif defined(R5900)
 
102
 
 
103
   /* PS2 EE */
 
104
   typedef long spx_int64_t;
 
105
   typedef int spx_int32_t;
 
106
   typedef unsigned spx_uint32_t;
 
107
   typedef short spx_int16_t;
 
108
 
 
109
#elif defined(__SYMBIAN32__)
 
110
 
 
111
   /* Symbian GCC */
 
112
   typedef signed short spx_int16_t;
 
113
   typedef unsigned short spx_uint16_t;
 
114
   typedef signed int spx_int32_t;
 
115
   typedef unsigned int spx_uint32_t;
 
116
   typedef long long int spx_int64_t;
 
117
 
 
118
#elif defined(CONFIG_TI_C54X) || defined (CONFIG_TI_C55X)
 
119
 
 
120
   typedef short spx_int16_t;
 
121
   typedef unsigned short spx_uint16_t;
 
122
   typedef long spx_int32_t;
 
123
   typedef unsigned long spx_uint32_t;
 
124
 
 
125
#elif defined(CONFIG_TI_C5X)
 
126
 
 
127
   typedef short spx_int16_t;
 
128
   typedef unsigned short spx_uint16_t;
 
129
   typedef int spx_int32_t;
 
130
   typedef unsigned int spx_uint32_t;
 
131
 
 
132
#else
 
133
 
 
134
#  include <speex/speex_config_types.h>
 
135
 
 
136
#endif
 
137
 
 
138
#endif  /* _SPEEX_TYPES_H */