Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

/home/rdbrown/doxygen/cse125g1/ov-win32/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.1 2005/04/19 01:13:01 rdbrown Exp $
00015 
00016  ********************************************************************/
00017 #ifndef _OS_TYPES_H
00018 #define _OS_TYPES_H
00019 
00020 /* make it easy on the folks that want to compile the libs with a
00021    different malloc than stdlib */
00022 #define _ogg_malloc  malloc
00023 #define _ogg_calloc  calloc
00024 #define _ogg_realloc realloc
00025 #define _ogg_free    free
00026 
00027 #ifdef _WIN32 
00028 
00029 #  ifndef __GNUC__
00030    /* MSVC/Borland */
00031    typedef __int64 ogg_int64_t;
00032    typedef __int32 ogg_int32_t;
00033    typedef unsigned __int32 ogg_uint32_t;
00034    typedef __int16 ogg_int16_t;
00035    typedef unsigned __int16 ogg_uint16_t;
00036 #  else
00037    /* Cygwin */
00038    #include <_G_config.h>
00039    typedef _G_int64_t ogg_int64_t;
00040    typedef _G_int32_t ogg_int32_t;
00041    typedef _G_uint32_t ogg_uint32_t;
00042    typedef _G_int16_t ogg_int16_t;
00043    typedef _G_uint16_t ogg_uint16_t;
00044 #  endif
00045 
00046 #elif defined(__MACOS__)
00047 
00048 #  include <sys/types.h>
00049    typedef SInt16 ogg_int16_t;
00050    typedef UInt16 ogg_uint16_t;
00051    typedef SInt32 ogg_int32_t;
00052    typedef UInt32 ogg_uint32_t;
00053    typedef SInt64 ogg_int64_t;
00054 
00055 #elif defined(__MACOSX__) /* MacOS X Framework build */
00056 
00057 #  include <sys/types.h>
00058    typedef int16_t ogg_int16_t;
00059    typedef u_int16_t ogg_uint16_t;
00060    typedef int32_t ogg_int32_t;
00061    typedef u_int32_t ogg_uint32_t;
00062    typedef int64_t ogg_int64_t;
00063 
00064 #elif defined(__BEOS__)
00065 
00066    /* Be */
00067 #  include <inttypes.h>
00068    typedef int16_t ogg_int16_t;
00069    typedef u_int16_t ogg_uint16_t;
00070    typedef int32_t ogg_int32_t;
00071    typedef u_int32_t ogg_uint32_t;
00072    typedef int64_t ogg_int64_t;
00073 
00074 #elif defined (__EMX__)
00075 
00076    /* OS/2 GCC */
00077    typedef short ogg_int16_t;
00078    typedef unsigned short ogg_uint16_t;
00079    typedef int ogg_int32_t;
00080    typedef unsigned int ogg_uint32_t;
00081    typedef long long ogg_int64_t;
00082 
00083 #elif defined (DJGPP)
00084 
00085    /* DJGPP */
00086    typedef short ogg_int16_t;
00087    typedef int ogg_int32_t;
00088    typedef unsigned int ogg_uint32_t;
00089    typedef long long ogg_int64_t;
00090 
00091 #elif defined(R5900)
00092 
00093    /* PS2 EE */
00094    typedef long ogg_int64_t;
00095    typedef int ogg_int32_t;
00096    typedef unsigned ogg_uint32_t;
00097    typedef short ogg_int16_t;
00098 
00099 #else
00100 
00101 #  include <sys/types.h>
00102 #  include <ogg/config_types.h>
00103 
00104 #endif
00105 
00106 #endif  /* _OS_TYPES_H */

Generated on Thu Aug 18 16:03:07 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18