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