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 #ifdef SYMBIAN_SEP_HEAP
00029
00030 # include "leavealloc.h"
00031 # define _ogg_malloc mallocL
00032 # define _ogg_calloc callocL
00033 # define _ogg_realloc reallocL
00034 # define _ogg_free freeL
00035
00036 #else
00037
00038
00039 # define _ogg_malloc malloc
00040 # define _ogg_calloc calloc
00041 # define _ogg_realloc realloc
00042 # define _ogg_free free
00043
00044 #endif
00045
00046 #ifdef __SYMBIAN32__
00047
00048 typedef long long ogg_int64_t;
00049 typedef int ogg_int32_t;
00050 typedef unsigned long int ogg_uint32_t;
00051 typedef short int ogg_int16_t;
00052
00053 #elif defined(_WIN32)
00054
00055 # ifndef __GNUC__
00056
00057 typedef __int64 ogg_int64_t;
00058 typedef __int32 ogg_int32_t;
00059 typedef unsigned __int32 ogg_uint32_t;
00060 typedef __int16 ogg_int16_t;
00061 # else
00062
00063 #include <_G_config.h>
00064 typedef _G_int64_t ogg_int64_t;
00065 typedef _G_int32_t ogg_int32_t;
00066 typedef _G_uint32_t ogg_uint32_t;
00067 typedef _G_int16_t ogg_int16_t;
00068 # endif
00069
00070 #elif defined(__MACOS__)
00071
00072 # include <sys/types.h>
00073 typedef SInt16 ogg_int16_t;
00074 typedef SInt32 ogg_int32_t;
00075 typedef UInt32 ogg_uint32_t;
00076 typedef SInt64 ogg_int64_t;
00077
00078 #elif defined(__MACOSX__)
00079
00080 # include <sys/types.h>
00081 typedef int16_t ogg_int16_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
00089 # include <inttypes.h>
00090
00091 #elif defined (__EMX__)
00092
00093
00094 typedef short ogg_int16_t;
00095 typedef int ogg_int32_t;
00096 typedef unsigned int ogg_uint32_t;
00097 typedef long long ogg_int64_t;
00098
00099 #else
00100
00101 # include <sys/types.h>
00102 # include "config_types.h"
00103
00104 #endif
00105
00106 #endif