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.11 2002/07/19 08:25:51 msmith 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
31 typedef __int64 ogg_int64_t;
32 typedef __int32 ogg_int32_t;
33 typedef unsigned __int32 ogg_uint32_t;
34 typedef __int16 ogg_int16_t;
37 #include <_G_config.h>
38 typedef _G_int64_t ogg_int64_t;
39 typedef _G_int32_t ogg_int32_t;
40 typedef _G_uint32_t ogg_uint32_t;
41 typedef _G_int16_t ogg_int16_t;
44 #elif defined(__MACOS__)
46 # include <sys/types.h>
47 typedef SInt16 ogg_int16_t;
48 typedef SInt32 ogg_int32_t;
49 typedef UInt32 ogg_uint32_t;
50 typedef SInt64 ogg_int64_t;
52 #elif defined(__MACOSX__) /* MacOS X Framework build */
54 # include <sys/types.h>
55 typedef int16_t ogg_int16_t;
56 typedef int32_t ogg_int32_t;
57 typedef u_int32_t ogg_uint32_t;
58 typedef int64_t ogg_int64_t;
60 #elif defined(__BEOS__)
63 # include <inttypes.h>
64 typedef int16_t ogg_int16_t;
65 typedef int32_t ogg_int32_t;
66 typedef u_int32_t ogg_uint32_t;
67 typedef int64_t ogg_int64_t;
69 #elif defined (__EMX__)
72 typedef short ogg_int16_t;
73 typedef int ogg_int32_t;
74 typedef unsigned int ogg_uint32_t;
75 typedef long long ogg_int64_t;
79 # include <sys/types.h>
80 # include <ogg/config_types.h>
84 #endif /* _OS_TYPES_H */