00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __oiv_inttypes_h__
00028 #define __oiv_inttypes_h__
00029
00030 #if defined(_WIN32)
00031 # if !defined(WIN32)
00032 # define WIN32
00033 # endif
00034 # if defined(_WIN64)
00035 # if !defined(WIN64)
00036 # define WIN64
00037 # endif
00038 # endif
00039 #endif
00040
00041 #ifdef _WIN32
00042 typedef signed __int8 int8_t;
00043 typedef unsigned __int8 uint8_t;
00044 typedef signed __int16 int16_t;
00045 typedef unsigned __int16 uint16_t;
00046 typedef signed __int32 int32_t;
00047 typedef unsigned __int32 uint32_t;
00048 typedef signed __int64 int64_t;
00049 typedef unsigned __int64 uint64_t;
00050
00051 #define SO_WCHAR_T unsigned short
00052 # define INT64FMT "%I64d"
00053
00054 #elif defined(__NUTC__)
00055 typedef unsigned char uint8_t;
00056 typedef unsigned long uint32_t;
00057 typedef long int32_t;
00058 #elif defined (__linux__) || defined(__APPLE__)
00059
00060 # include <stdint.h>
00061 #elif defined(sun)
00062 # include <sys/types.h>
00063 #elif defined(__sgi)
00064 # include <sys/types.h>
00065 #elif defined(_AIX)
00066 # include <sys/types.h>
00067 #elif defined(__osf__)
00068 # include "/usr/include/inttypes.h"
00069 #elif defined(__hpux)
00070 # include <sys/unistd.h>
00071 #elif defined(__OPENNT)
00072 typedef unsigned char uint8_t;
00073 typedef signed int int32_t;
00074 typedef unsigned int uint32_t;
00075 #endif
00076
00077 #ifndef _WIN32
00078 #define SO_WCHAR_T wchar_t
00079
00080 #if defined(__GNUC__) && defined(__LP64__) && (__LP64__ == 1)
00081 # define INT64FMT "%ld"
00082 #else
00083 # define INT64FMT "%lld"
00084 #endif
00085 #endif
00086
00087 #if defined(_WIN64) || _MSC_VER >= 1300
00088
00089 #elif defined(__NUTC__)
00090 #include <nutc/pragma.h>
00091 #include <nutc/intptr_t.h>
00092 #elif defined(_WIN32) && !defined(_WIN64) && _MSC_VER < 1300
00093 typedef unsigned uintptr_t;
00094 typedef unsigned long DWORD_PTR;
00095 typedef signed int intptr_t;
00096 #elif defined(sun) && (MIPS_SZPTR <= 32)
00097
00098 #elif (defined(__sgi) && (_MIPS_SZPTR == 64)) || (MIPS_SZPTR == 64) || defined(__sparcv9) || defined(__osf__)
00099 typedef unsigned long uintptr_t;
00100 typedef unsigned long DWORD_PTR;
00101 #elif defined(__linux__) || defined(__hpux) || (defined(_ABIO32) && (_MIPS_SIM==_ABIO32)) || defined(_AIX)
00102
00103 typedef unsigned long DWORD_PTR;
00104 #else
00105 typedef unsigned long DWORD_PTR;
00106 #endif
00107
00108 #if defined(_WIN32) && !defined(_WIN64) && _MSC_VER < 1300
00109 # ifndef SetWindowLongPtr
00110 # define SetWindowLongPtr SetWindowLong
00111 # endif
00112 # ifndef GetWindowLongPtr
00113 # define GetWindowLongPtr GetWindowLong
00114 # endif
00115 # ifndef LONG_PTR
00116 # define LONG_PTR LONG
00117 # endif
00118 # ifndef GWLP_HINSTANCE
00119 # define GWLP_HINSTANCE GWL_HINSTANCE
00120 # endif
00121 # ifndef GWLP_WNDPROC
00122 # define GWLP_WNDPROC GWL_WNDPROC
00123 # endif
00124 # ifndef GWLP_USERDATA
00125 # define GWLP_USERDATA GWL_USERDATA
00126 # endif
00127 # ifndef DWLP_USER
00128 # define DWLP_USER DWL_USER
00129 # endif
00130 #endif
00131
00132 #endif
00133
00134