VisualC/vorbis/include/ogg/os_types.h
changeset 495 b4d178cd982d
child 532 b8e8ae4852b2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/VisualC/vorbis/include/ogg/os_types.h	Tue Jan 18 11:11:21 2011 -0800
     1.3 @@ -0,0 +1,139 @@
     1.4 +/********************************************************************
     1.5 + *                                                                  *
     1.6 + * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
     1.7 + * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
     1.8 + * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
     1.9 + * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
    1.10 + *                                                                  *
    1.11 + * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
    1.12 + * by the Xiph.Org Foundation http://www.xiph.org/                  *
    1.13 + *                                                                  *
    1.14 + ********************************************************************
    1.15 +
    1.16 + function: #ifdef jail to whip a few platforms into the UNIX ideal.
    1.17 + last mod: $Id: os_types.h 14997 2008-06-04 03:27:18Z ivo $
    1.18 +
    1.19 + ********************************************************************/
    1.20 +#ifndef _OS_TYPES_H
    1.21 +#define _OS_TYPES_H
    1.22 +
    1.23 +/* make it easy on the folks that want to compile the libs with a
    1.24 +   different malloc than stdlib */
    1.25 +#define _ogg_malloc  malloc
    1.26 +#define _ogg_calloc  calloc
    1.27 +#define _ogg_realloc realloc
    1.28 +#define _ogg_free    free
    1.29 +
    1.30 +#if defined(_WIN32) 
    1.31 +
    1.32 +#  if defined(__CYGWIN__)
    1.33 +#    include <stdint.h>
    1.34 +     typedef int16_t ogg_int16_t;
    1.35 +     typedef uint16_t ogg_uint16_t;
    1.36 +     typedef int32_t ogg_int32_t;
    1.37 +     typedef uint32_t ogg_uint32_t;
    1.38 +     typedef int64_t ogg_int64_t;
    1.39 +     typedef uint64_t ogg_uint64_t;
    1.40 +#  elif defined(__MINGW32__)
    1.41 +#    include <sys/types.h>
    1.42 +     typedef short ogg_int16_t;
    1.43 +     typedef unsigned short ogg_uint16_t;
    1.44 +     typedef int ogg_int32_t;
    1.45 +     typedef unsigned int ogg_uint32_t;
    1.46 +     typedef long long ogg_int64_t;
    1.47 +     typedef unsigned long long ogg_uint64_t;
    1.48 +#  elif defined(__MWERKS__)
    1.49 +     typedef long long ogg_int64_t;
    1.50 +     typedef int ogg_int32_t;
    1.51 +     typedef unsigned int ogg_uint32_t;
    1.52 +     typedef short ogg_int16_t;
    1.53 +     typedef unsigned short ogg_uint16_t;
    1.54 +#  else
    1.55 +     /* MSVC/Borland */
    1.56 +     typedef __int64 ogg_int64_t;
    1.57 +     typedef __int32 ogg_int32_t;
    1.58 +     typedef unsigned __int32 ogg_uint32_t;
    1.59 +     typedef __int16 ogg_int16_t;
    1.60 +     typedef unsigned __int16 ogg_uint16_t;
    1.61 +#  endif
    1.62 +
    1.63 +#elif defined(__MACOS__)
    1.64 +
    1.65 +#  include <sys/types.h>
    1.66 +   typedef SInt16 ogg_int16_t;
    1.67 +   typedef UInt16 ogg_uint16_t;
    1.68 +   typedef SInt32 ogg_int32_t;
    1.69 +   typedef UInt32 ogg_uint32_t;
    1.70 +   typedef SInt64 ogg_int64_t;
    1.71 +
    1.72 +#elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */
    1.73 +
    1.74 +#  include <sys/types.h>
    1.75 +   typedef int16_t ogg_int16_t;
    1.76 +   typedef u_int16_t ogg_uint16_t;
    1.77 +   typedef int32_t ogg_int32_t;
    1.78 +   typedef u_int32_t ogg_uint32_t;
    1.79 +   typedef int64_t ogg_int64_t;
    1.80 +
    1.81 +#elif defined(__HAIKU__)
    1.82 +
    1.83 +  /* Haiku */
    1.84 +#  include <sys/types.h>
    1.85 +   typedef short ogg_int16_t;
    1.86 +   typedef unsigned short ogg_uint16_t;
    1.87 +   typedef int ogg_int32_t;
    1.88 +   typedef unsigned int ogg_uint32_t;
    1.89 +   typedef long long ogg_int64_t;
    1.90 +
    1.91 +#elif defined(__BEOS__)
    1.92 +
    1.93 +   /* Be */
    1.94 +#  include <inttypes.h>
    1.95 +   typedef int16_t ogg_int16_t;
    1.96 +   typedef u_int16_t ogg_uint16_t;
    1.97 +   typedef int32_t ogg_int32_t;
    1.98 +   typedef u_int32_t ogg_uint32_t;
    1.99 +   typedef int64_t ogg_int64_t;
   1.100 +
   1.101 +#elif defined (__EMX__)
   1.102 +
   1.103 +   /* OS/2 GCC */
   1.104 +   typedef short ogg_int16_t;
   1.105 +   typedef unsigned short ogg_uint16_t;
   1.106 +   typedef int ogg_int32_t;
   1.107 +   typedef unsigned int ogg_uint32_t;
   1.108 +   typedef long long ogg_int64_t;
   1.109 +
   1.110 +#elif defined (DJGPP)
   1.111 +
   1.112 +   /* DJGPP */
   1.113 +   typedef short ogg_int16_t;
   1.114 +   typedef int ogg_int32_t;
   1.115 +   typedef unsigned int ogg_uint32_t;
   1.116 +   typedef long long ogg_int64_t;
   1.117 +
   1.118 +#elif defined(R5900)
   1.119 +
   1.120 +   /* PS2 EE */
   1.121 +   typedef long ogg_int64_t;
   1.122 +   typedef int ogg_int32_t;
   1.123 +   typedef unsigned ogg_uint32_t;
   1.124 +   typedef short ogg_int16_t;
   1.125 +
   1.126 +#elif defined(__SYMBIAN32__)
   1.127 +
   1.128 +   /* Symbian GCC */
   1.129 +   typedef signed short ogg_int16_t;
   1.130 +   typedef unsigned short ogg_uint16_t;
   1.131 +   typedef signed int ogg_int32_t;
   1.132 +   typedef unsigned int ogg_uint32_t;
   1.133 +   typedef long long int ogg_int64_t;
   1.134 +
   1.135 +#else
   1.136 +
   1.137 +#  include <sys/types.h>
   1.138 +#  include <ogg/config_types.h>
   1.139 +
   1.140 +#endif
   1.141 +
   1.142 +#endif  /* _OS_TYPES_H */