]> git.jsancho.org Git - lugaru.git/blob - libogg-1.0/include/ogg/os_types.h
First shot at an OpenAL renderer. Sound effects work, no music.
[lugaru.git] / libogg-1.0 / include / ogg / os_types.h
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.11 2002/07/19 08:25:51 msmith 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 #ifdef _WIN32 
28
29 #  ifndef __GNUC__
30    /* MSVC/Borland */
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;
35 #  else
36    /* Cygwin */
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;
42 #  endif
43
44 #elif defined(__MACOS__)
45
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;
51
52 #elif defined(__MACOSX__) /* MacOS X Framework build */
53
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;
59
60 #elif defined(__BEOS__)
61
62    /* Be */
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;
68
69 #elif defined (__EMX__)
70
71    /* OS/2 GCC */
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;
76
77 #else
78
79 #  include <sys/types.h>
80 #  include <ogg/config_types.h>
81
82 #endif
83
84 #endif  /* _OS_TYPES_H */