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
00021
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
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
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__)
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
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
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
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
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