dbf-halloween2015

annotate libs/ogg/os_types.h @ 2:5ae5fd3626fa

macosx port works
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 00:51:36 +0200
parents
children
rev   line source
nuclear@1 1 /********************************************************************
nuclear@1 2 * *
nuclear@1 3 * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. *
nuclear@1 4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
nuclear@1 5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
nuclear@1 6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
nuclear@1 7 * *
nuclear@1 8 * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 *
nuclear@1 9 * by the Xiph.Org Foundation http://www.xiph.org/ *
nuclear@1 10 * *
nuclear@1 11 ********************************************************************
nuclear@1 12
nuclear@1 13 function: #ifdef jail to whip a few platforms into the UNIX ideal.
nuclear@1 14 last mod: $Id: os_types.h 17712 2010-12-03 17:10:02Z xiphmont $
nuclear@1 15
nuclear@1 16 ********************************************************************/
nuclear@1 17 #ifndef _OS_TYPES_H
nuclear@1 18 #define _OS_TYPES_H
nuclear@1 19
nuclear@1 20 /* make it easy on the folks that want to compile the libs with a
nuclear@1 21 different malloc than stdlib */
nuclear@1 22 #define _ogg_malloc malloc
nuclear@1 23 #define _ogg_calloc calloc
nuclear@1 24 #define _ogg_realloc realloc
nuclear@1 25 #define _ogg_free free
nuclear@1 26
nuclear@1 27 #if defined(_WIN32)
nuclear@1 28
nuclear@1 29 # if defined(__CYGWIN__)
nuclear@1 30 # include <stdint.h>
nuclear@1 31 typedef int16_t ogg_int16_t;
nuclear@1 32 typedef uint16_t ogg_uint16_t;
nuclear@1 33 typedef int32_t ogg_int32_t;
nuclear@1 34 typedef uint32_t ogg_uint32_t;
nuclear@1 35 typedef int64_t ogg_int64_t;
nuclear@1 36 typedef uint64_t ogg_uint64_t;
nuclear@1 37 # elif defined(__MINGW32__)
nuclear@1 38 # include <sys/types.h>
nuclear@1 39 typedef short ogg_int16_t;
nuclear@1 40 typedef unsigned short ogg_uint16_t;
nuclear@1 41 typedef int ogg_int32_t;
nuclear@1 42 typedef unsigned int ogg_uint32_t;
nuclear@1 43 typedef long long ogg_int64_t;
nuclear@1 44 typedef unsigned long long ogg_uint64_t;
nuclear@1 45 # elif defined(__MWERKS__)
nuclear@1 46 typedef long long ogg_int64_t;
nuclear@1 47 typedef int ogg_int32_t;
nuclear@1 48 typedef unsigned int ogg_uint32_t;
nuclear@1 49 typedef short ogg_int16_t;
nuclear@1 50 typedef unsigned short ogg_uint16_t;
nuclear@1 51 # else
nuclear@1 52 /* MSVC/Borland */
nuclear@1 53 typedef __int64 ogg_int64_t;
nuclear@1 54 typedef __int32 ogg_int32_t;
nuclear@1 55 typedef unsigned __int32 ogg_uint32_t;
nuclear@1 56 typedef __int16 ogg_int16_t;
nuclear@1 57 typedef unsigned __int16 ogg_uint16_t;
nuclear@1 58 # endif
nuclear@1 59
nuclear@1 60 #elif defined(__MACOS__)
nuclear@1 61
nuclear@1 62 # include <sys/types.h>
nuclear@1 63 typedef SInt16 ogg_int16_t;
nuclear@1 64 typedef UInt16 ogg_uint16_t;
nuclear@1 65 typedef SInt32 ogg_int32_t;
nuclear@1 66 typedef UInt32 ogg_uint32_t;
nuclear@1 67 typedef SInt64 ogg_int64_t;
nuclear@1 68
nuclear@1 69 #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
nuclear@1 70
nuclear@1 71 # include <inttypes.h>
nuclear@1 72 typedef int16_t ogg_int16_t;
nuclear@1 73 typedef uint16_t ogg_uint16_t;
nuclear@1 74 typedef int32_t ogg_int32_t;
nuclear@1 75 typedef uint32_t ogg_uint32_t;
nuclear@1 76 typedef int64_t ogg_int64_t;
nuclear@1 77
nuclear@1 78 #elif defined(__HAIKU__)
nuclear@1 79
nuclear@1 80 /* Haiku */
nuclear@1 81 # include <sys/types.h>
nuclear@1 82 typedef short ogg_int16_t;
nuclear@1 83 typedef unsigned short ogg_uint16_t;
nuclear@1 84 typedef int ogg_int32_t;
nuclear@1 85 typedef unsigned int ogg_uint32_t;
nuclear@1 86 typedef long long ogg_int64_t;
nuclear@1 87
nuclear@1 88 #elif defined(__BEOS__)
nuclear@1 89
nuclear@1 90 /* Be */
nuclear@1 91 # include <inttypes.h>
nuclear@1 92 typedef int16_t ogg_int16_t;
nuclear@1 93 typedef uint16_t ogg_uint16_t;
nuclear@1 94 typedef int32_t ogg_int32_t;
nuclear@1 95 typedef uint32_t ogg_uint32_t;
nuclear@1 96 typedef int64_t ogg_int64_t;
nuclear@1 97
nuclear@1 98 #elif defined (__EMX__)
nuclear@1 99
nuclear@1 100 /* OS/2 GCC */
nuclear@1 101 typedef short ogg_int16_t;
nuclear@1 102 typedef unsigned short ogg_uint16_t;
nuclear@1 103 typedef int ogg_int32_t;
nuclear@1 104 typedef unsigned int ogg_uint32_t;
nuclear@1 105 typedef long long ogg_int64_t;
nuclear@1 106
nuclear@1 107 #elif defined (DJGPP)
nuclear@1 108
nuclear@1 109 /* DJGPP */
nuclear@1 110 typedef short ogg_int16_t;
nuclear@1 111 typedef int ogg_int32_t;
nuclear@1 112 typedef unsigned int ogg_uint32_t;
nuclear@1 113 typedef long long ogg_int64_t;
nuclear@1 114
nuclear@1 115 #elif defined(R5900)
nuclear@1 116
nuclear@1 117 /* PS2 EE */
nuclear@1 118 typedef long ogg_int64_t;
nuclear@1 119 typedef int ogg_int32_t;
nuclear@1 120 typedef unsigned ogg_uint32_t;
nuclear@1 121 typedef short ogg_int16_t;
nuclear@1 122
nuclear@1 123 #elif defined(__SYMBIAN32__)
nuclear@1 124
nuclear@1 125 /* Symbian GCC */
nuclear@1 126 typedef signed short ogg_int16_t;
nuclear@1 127 typedef unsigned short ogg_uint16_t;
nuclear@1 128 typedef signed int ogg_int32_t;
nuclear@1 129 typedef unsigned int ogg_uint32_t;
nuclear@1 130 typedef long long int ogg_int64_t;
nuclear@1 131
nuclear@1 132 #elif defined(__TMS320C6X__)
nuclear@1 133
nuclear@1 134 /* TI C64x compiler */
nuclear@1 135 typedef signed short ogg_int16_t;
nuclear@1 136 typedef unsigned short ogg_uint16_t;
nuclear@1 137 typedef signed int ogg_int32_t;
nuclear@1 138 typedef unsigned int ogg_uint32_t;
nuclear@1 139 typedef long long int ogg_int64_t;
nuclear@1 140
nuclear@1 141 #else
nuclear@1 142
nuclear@1 143 # include <ogg/config_types.h>
nuclear@1 144
nuclear@1 145 #endif
nuclear@1 146
nuclear@1 147 #endif /* _OS_TYPES_H */