nuclear@1: /******************************************************************** nuclear@1: * * nuclear@1: * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * nuclear@1: * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * nuclear@1: * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * nuclear@1: * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * nuclear@1: * * nuclear@1: * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002 * nuclear@1: * by the Xiph.Org Foundation http://www.xiph.org/ * nuclear@1: * * nuclear@1: ******************************************************************** nuclear@1: nuclear@1: function: #ifdef jail to whip a few platforms into the UNIX ideal. nuclear@1: last mod: $Id: os_types.h 17712 2010-12-03 17:10:02Z xiphmont $ nuclear@1: nuclear@1: ********************************************************************/ nuclear@1: #ifndef _OS_TYPES_H nuclear@1: #define _OS_TYPES_H nuclear@1: nuclear@1: /* make it easy on the folks that want to compile the libs with a nuclear@1: different malloc than stdlib */ nuclear@1: #define _ogg_malloc malloc nuclear@1: #define _ogg_calloc calloc nuclear@1: #define _ogg_realloc realloc nuclear@1: #define _ogg_free free nuclear@1: nuclear@1: #if defined(_WIN32) nuclear@1: nuclear@1: # if defined(__CYGWIN__) nuclear@1: # include nuclear@1: typedef int16_t ogg_int16_t; nuclear@1: typedef uint16_t ogg_uint16_t; nuclear@1: typedef int32_t ogg_int32_t; nuclear@1: typedef uint32_t ogg_uint32_t; nuclear@1: typedef int64_t ogg_int64_t; nuclear@1: typedef uint64_t ogg_uint64_t; nuclear@1: # elif defined(__MINGW32__) nuclear@1: # include nuclear@1: typedef short ogg_int16_t; nuclear@1: typedef unsigned short ogg_uint16_t; nuclear@1: typedef int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef long long ogg_int64_t; nuclear@1: typedef unsigned long long ogg_uint64_t; nuclear@1: # elif defined(__MWERKS__) nuclear@1: typedef long long ogg_int64_t; nuclear@1: typedef int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef short ogg_int16_t; nuclear@1: typedef unsigned short ogg_uint16_t; nuclear@1: # else nuclear@1: /* MSVC/Borland */ nuclear@1: typedef __int64 ogg_int64_t; nuclear@1: typedef __int32 ogg_int32_t; nuclear@1: typedef unsigned __int32 ogg_uint32_t; nuclear@1: typedef __int16 ogg_int16_t; nuclear@1: typedef unsigned __int16 ogg_uint16_t; nuclear@1: # endif nuclear@1: nuclear@1: #elif defined(__MACOS__) nuclear@1: nuclear@1: # include nuclear@1: typedef SInt16 ogg_int16_t; nuclear@1: typedef UInt16 ogg_uint16_t; nuclear@1: typedef SInt32 ogg_int32_t; nuclear@1: typedef UInt32 ogg_uint32_t; nuclear@1: typedef SInt64 ogg_int64_t; nuclear@1: nuclear@1: #elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */ nuclear@1: nuclear@1: # include nuclear@1: typedef int16_t ogg_int16_t; nuclear@1: typedef uint16_t ogg_uint16_t; nuclear@1: typedef int32_t ogg_int32_t; nuclear@1: typedef uint32_t ogg_uint32_t; nuclear@1: typedef int64_t ogg_int64_t; nuclear@1: nuclear@1: #elif defined(__HAIKU__) nuclear@1: nuclear@1: /* Haiku */ nuclear@1: # include nuclear@1: typedef short ogg_int16_t; nuclear@1: typedef unsigned short ogg_uint16_t; nuclear@1: typedef int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef long long ogg_int64_t; nuclear@1: nuclear@1: #elif defined(__BEOS__) nuclear@1: nuclear@1: /* Be */ nuclear@1: # include nuclear@1: typedef int16_t ogg_int16_t; nuclear@1: typedef uint16_t ogg_uint16_t; nuclear@1: typedef int32_t ogg_int32_t; nuclear@1: typedef uint32_t ogg_uint32_t; nuclear@1: typedef int64_t ogg_int64_t; nuclear@1: nuclear@1: #elif defined (__EMX__) nuclear@1: nuclear@1: /* OS/2 GCC */ nuclear@1: typedef short ogg_int16_t; nuclear@1: typedef unsigned short ogg_uint16_t; nuclear@1: typedef int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef long long ogg_int64_t; nuclear@1: nuclear@1: #elif defined (DJGPP) nuclear@1: nuclear@1: /* DJGPP */ nuclear@1: typedef short ogg_int16_t; nuclear@1: typedef int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef long long ogg_int64_t; nuclear@1: nuclear@1: #elif defined(R5900) nuclear@1: nuclear@1: /* PS2 EE */ nuclear@1: typedef long ogg_int64_t; nuclear@1: typedef int ogg_int32_t; nuclear@1: typedef unsigned ogg_uint32_t; nuclear@1: typedef short ogg_int16_t; nuclear@1: nuclear@1: #elif defined(__SYMBIAN32__) nuclear@1: nuclear@1: /* Symbian GCC */ nuclear@1: typedef signed short ogg_int16_t; nuclear@1: typedef unsigned short ogg_uint16_t; nuclear@1: typedef signed int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef long long int ogg_int64_t; nuclear@1: nuclear@1: #elif defined(__TMS320C6X__) nuclear@1: nuclear@1: /* TI C64x compiler */ nuclear@1: typedef signed short ogg_int16_t; nuclear@1: typedef unsigned short ogg_uint16_t; nuclear@1: typedef signed int ogg_int32_t; nuclear@1: typedef unsigned int ogg_uint32_t; nuclear@1: typedef long long int ogg_int64_t; nuclear@1: nuclear@1: #else nuclear@1: nuclear@1: # include nuclear@1: nuclear@1: #endif nuclear@1: nuclear@1: #endif /* _OS_TYPES_H */