examples/sfexamples/oggvorbiscodec/src/libogg/include/ogg/os_types.h

00001 /********************************************************************
00002  *                                                                  *
00003  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
00004  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
00005  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
00006  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
00007  *                                                                  *
00008  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
00009  * by the Xiph.Org Foundation http://www.xiph.org/                  *
00010  *                                                                  *
00011  ********************************************************************
00012 
00013  function: #ifdef jail to whip a few platforms into the UNIX ideal.
00014  last mod: $Id: os_types.h,v 1.14 2003/09/02 05:09:14 xiphmont Exp $
00015 
00016  ********************************************************************/
00017 #ifndef _OS_TYPES_H
00018 #define _OS_TYPES_H
00019 
00020 #ifdef SYMBIAN_SEP_HEAP
00021 
00022 #  include "leavealloc.h"
00023 #  define _ogg_malloc  mallocL
00024 #  define _ogg_calloc  callocL
00025 #  define _ogg_realloc reallocL
00026 #  define _ogg_free freeL
00027 
00028 #else
00029 /* make it easy on the folks that want to compile the libs with a
00030    different malloc than stdlib */
00031 #define _ogg_malloc  malloc
00032 #define _ogg_calloc  calloc
00033 #define _ogg_realloc realloc
00034 #define _ogg_free    free
00035 #endif
00036 
00037 #ifdef __SYMBIAN32__
00038 
00039    typedef long long ogg_int64_t;
00040    typedef int ogg_int32_t;
00041    typedef unsigned long int ogg_uint32_t;
00042    typedef short int ogg_int16_t;
00043 
00044 #elif defined(_WIN32)
00045 
00046 #  if defined(__GNUC__)
00047    /* Cygwin */
00048    #include <_G_config.h>
00049    typedef _G_int64_t ogg_int64_t;
00050    typedef _G_int32_t ogg_int32_t;
00051    typedef _G_uint32_t ogg_uint32_t;
00052    typedef _G_int16_t ogg_int16_t;
00053    typedef _G_uint16_t ogg_uint16_t;
00054 #  elif defined(__SYMBIAN32__)
00055    typedef long long ogg_int64_t;
00056    typedef int ogg_int32_t;
00057    typedef unsigned long int ogg_uint32_t;
00058    typedef short int ogg_int16_t;
00059 #  else
00060    /* MSVC/Borland */
00061    typedef __int64 ogg_int64_t;
00062    typedef __int32 ogg_int32_t;
00063    typedef unsigned __int32 ogg_uint32_t;
00064    typedef __int16 ogg_int16_t;
00065    typedef unsigned __int16 ogg_uint16_t;
00066 #  endif
00067 
00068 #elif defined(__MACOS__)
00069 
00070 #  include <sys/types.h>
00071    typedef SInt16 ogg_int16_t;
00072    typedef UInt16 ogg_uint16_t;
00073    typedef SInt32 ogg_int32_t;
00074    typedef UInt32 ogg_uint32_t;
00075    typedef SInt64 ogg_int64_t;
00076 
00077 #elif defined(__MACOSX__) /* MacOS X Framework build */
00078 
00079 #  include <sys/types.h>
00080    typedef int16_t ogg_int16_t;
00081    typedef u_int16_t ogg_uint16_t;
00082    typedef int32_t ogg_int32_t;
00083    typedef u_int32_t ogg_uint32_t;
00084    typedef int64_t ogg_int64_t;
00085 
00086 #elif defined(__BEOS__)
00087 
00088    /* Be */
00089 #  include <inttypes.h>
00090    typedef int16_t ogg_int16_t;
00091    typedef u_int16_t ogg_uint16_t;
00092    typedef int32_t ogg_int32_t;
00093    typedef u_int32_t ogg_uint32_t;
00094    typedef int64_t ogg_int64_t;
00095 
00096 #elif defined (__EMX__)
00097 
00098    /* OS/2 GCC */
00099    typedef short ogg_int16_t;
00100    typedef unsigned short ogg_uint16_t;
00101    typedef int ogg_int32_t;
00102    typedef unsigned int ogg_uint32_t;
00103    typedef long long ogg_int64_t;
00104 
00105 #elif defined (DJGPP)
00106 
00107    /* DJGPP */
00108    typedef short ogg_int16_t;
00109    typedef int ogg_int32_t;
00110    typedef unsigned int ogg_uint32_t;
00111    typedef long long ogg_int64_t;
00112 
00113 #elif defined(R5900)
00114 
00115    /* PS2 EE */
00116    typedef long ogg_int64_t;
00117    typedef int ogg_int32_t;
00118    typedef unsigned ogg_uint32_t;
00119    typedef short ogg_int16_t;
00120    
00121 #elif defined(__SYMBIAN32__)
00122 
00123    typedef long long ogg_int64_t;
00124    typedef int ogg_int32_t;
00125    typedef unsigned long int ogg_uint32_t;
00126    typedef short int ogg_int16_t;
00127     
00128 
00129 #else
00130 
00131 #  include <sys/types.h>
00132 #  include <ogg/config_types.h>
00133 
00134 #endif
00135 
00136 #endif  /* _OS_TYPES_H */

Generated by  doxygen 1.6.2