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