00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _OS_TYPES_H
00018 #define _OS_TYPES_H
00019
00020 #ifdef _LOW_ACCURACY_
00021 # define X(n) (((((n)>>22)+1)>>1) - ((((n)>>22)+1)>>9))
00022 # define LOOKUP_T const unsigned char
00023 #else
00024 # define X(n) (n)
00025 # define LOOKUP_T const ogg_int32_t
00026 #endif
00027
00028
00029
00030 #define _ogg_malloc malloc
00031 #define _ogg_calloc calloc
00032 #define _ogg_realloc realloc
00033 #define _ogg_free free
00034
00035 #ifdef _WIN32
00036
00037 # ifndef __GNUC__
00038
00039 typedef __int64 ogg_int64_t;
00040 typedef __int32 ogg_int32_t;
00041 typedef unsigned __int32 ogg_uint32_t;
00042 typedef __int16 ogg_int16_t;
00043 # else
00044
00045 #include <_G_config.h>
00046 typedef _G_int64_t ogg_int64_t;
00047 typedef _G_int32_t ogg_int32_t;
00048 typedef _G_uint32_t ogg_uint32_t;
00049 typedef _G_int16_t ogg_int16_t;
00050 # endif
00051
00052 #elif defined(__MACOS__)
00053
00054 # include <sys/types.h>
00055 typedef SInt16 ogg_int16_t;
00056 typedef SInt32 ogg_int32_t;
00057 typedef UInt32 ogg_uint32_t;
00058 typedef SInt64 ogg_int64_t;
00059
00060 #elif defined(__MACOSX__)
00061
00062 # include <sys/types.h>
00063 typedef int16_t ogg_int16_t;
00064 typedef int32_t ogg_int32_t;
00065 typedef u_int32_t ogg_uint32_t;
00066 typedef int64_t ogg_int64_t;
00067
00068 #elif defined(__BEOS__)
00069
00070
00071 # include <inttypes.h>
00072
00073 #elif defined (__EMX__)
00074
00075
00076 typedef short ogg_int16_t;
00077 typedef int ogg_int32_t;
00078 typedef unsigned int ogg_uint32_t;
00079 typedef long long ogg_int64_t;
00080
00081 #else
00082
00083 # include <sys/types.h>
00084 # include "config_types.h"
00085
00086 #endif
00087
00088 #endif