openshot-audio  0.1.2
os_types.h
Go to the documentation of this file.
1 /********************************************************************
2  * *
3  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
7  * *
8  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
9  * by the Xiph.Org Foundation http://www.xiph.org/ *
10  * *
11  ********************************************************************
12 
13  function: #ifdef jail to whip a few platforms into the UNIX ideal.
14  last mod: $Id: os_types.h,v 1.1 2007/06/07 17:48:18 jules_rms Exp $
15 
16  ********************************************************************/
17 #ifndef _OS_TYPES_H
18 #define _OS_TYPES_H
19 
20 /* make it easy on the folks that want to compile the libs with a
21  different malloc than stdlib */
22 #define _ogg_malloc malloc
23 #define _ogg_calloc calloc
24 #define _ogg_realloc realloc
25 #define _ogg_free free
26 
27 #if defined(_WIN32)
28 
29 # if defined(__CYGWIN__)
30 # include <_G_config.h>
31  typedef _G_int64_t ogg_int64_t;
32  typedef _G_int32_t ogg_int32_t;
33  typedef _G_uint32_t ogg_uint32_t;
34  typedef _G_int16_t ogg_int16_t;
35  typedef _G_uint16_t ogg_uint16_t;
36 # elif defined(__MINGW32__)
37  typedef short ogg_int16_t;
38  typedef unsigned short ogg_uint16_t;
39  typedef int ogg_int32_t;
40  typedef unsigned int ogg_uint32_t;
41  typedef long long ogg_int64_t;
42  typedef unsigned long long ogg_uint64_t;
43 # elif defined(__MWERKS__)
44  typedef long long ogg_int64_t;
45  typedef int ogg_int32_t;
46  typedef unsigned int ogg_uint32_t;
47  typedef short ogg_int16_t;
48  typedef unsigned short ogg_uint16_t;
49 # else
50  /* MSVC/Borland */
51  typedef __int64 ogg_int64_t;
52  typedef __int32 ogg_int32_t;
53  typedef unsigned __int32 ogg_uint32_t;
54  typedef __int16 ogg_int16_t;
55  typedef unsigned __int16 ogg_uint16_t;
56 # endif
57 
58 #elif defined(__MACOS__)
59 
60 # include <sys/types.h>
61  typedef SInt16 ogg_int16_t;
62  typedef UInt16 ogg_uint16_t;
63  typedef SInt32 ogg_int32_t;
64  typedef UInt32 ogg_uint32_t;
65  typedef SInt64 ogg_int64_t;
66 
67 #elif defined(__MACOSX__) /* MacOS X Framework build */
68 
69 # include <sys/types.h>
70  typedef int16_t ogg_int16_t;
71  typedef u_int16_t ogg_uint16_t;
72  typedef int32_t ogg_int32_t;
73  typedef u_int32_t ogg_uint32_t;
74  typedef int64_t ogg_int64_t;
75 
76 #elif defined(__BEOS__)
77 
78  /* Be */
79 # include <inttypes.h>
80  typedef int16_t ogg_int16_t;
81  typedef u_int16_t ogg_uint16_t;
82  typedef int32_t ogg_int32_t;
83  typedef u_int32_t ogg_uint32_t;
84  typedef int64_t ogg_int64_t;
85 
86 #elif defined (__EMX__)
87 
88  /* OS/2 GCC */
89  typedef short ogg_int16_t;
90  typedef unsigned short ogg_uint16_t;
91  typedef int ogg_int32_t;
92  typedef unsigned int ogg_uint32_t;
93  typedef long long ogg_int64_t;
94 
95 #elif defined (DJGPP)
96 
97  /* DJGPP */
98  typedef short ogg_int16_t;
99  typedef int ogg_int32_t;
100  typedef unsigned int ogg_uint32_t;
101  typedef long long ogg_int64_t;
102 
103 #elif defined(R5900)
104 
105  /* PS2 EE */
106  typedef long ogg_int64_t;
107  typedef int ogg_int32_t;
108  typedef unsigned ogg_uint32_t;
109  typedef short ogg_int16_t;
110 
111 #elif defined(__SYMBIAN32__)
112 
113  /* Symbian GCC */
114  typedef signed short ogg_int16_t;
115  typedef unsigned short ogg_uint16_t;
116  typedef signed int ogg_int32_t;
117  typedef unsigned int ogg_uint32_t;
118  typedef long long int ogg_int64_t;
119 
120 #else
121 
122 # include <sys/types.h>
123 # include "config_types.h"
124 
125 #endif
126 
127 #endif /* _OS_TYPES_H */
int64_t ogg_int64_t
Definition: config_types.h:8
int32_t ogg_int32_t
Definition: config_types.h:6
unsigned short ogg_uint16_t
Definition: config_types.h:5
unsigned int ogg_uint32_t
Definition: config_types.h:7
int16_t ogg_int16_t
Definition: config_types.h:4