1
/********************************************************************
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. *
8
* THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
9
* by the Xiph.Org Foundation http://www.xiph.org/ *
11
********************************************************************
13
function: #ifdef jail to whip a few platforms into the UNIX ideal.
14
last mod: $Id: os_types.h,v 1.1 2008-04-10 22:50:38 adrian_henke Exp $
16
********************************************************************/
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
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;
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;
58
#elif defined(__MACOS__)
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;
67
#elif defined(__MACOSX__) /* MacOS X Framework build */
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;
76
#elif defined(__BEOS__)
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;
86
#elif defined (__EMX__)
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;
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;
106
typedef long ogg_int64_t;
107
typedef int ogg_int32_t;
108
typedef unsigned ogg_uint32_t;
109
typedef short ogg_int16_t;
111
#elif defined(__SYMBIAN32__)
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;
122
# include <sys/types.h>
123
# include <ogg/config_types.h>
127
#endif /* _OS_TYPES_H */