Go to the documentation of this file.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
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef Foundation_Types_INCLUDED
00040 #define Foundation_Types_INCLUDED
00041
00042
00043 #include "Poco/Foundation.h"
00044
00045
00046 namespace Poco {
00047
00048
00049 #if defined(_MSC_VER)
00050
00051
00052
00053 typedef signed char Int8;
00054 typedef unsigned char UInt8;
00055 typedef signed short Int16;
00056 typedef unsigned short UInt16;
00057 typedef signed int Int32;
00058 typedef unsigned int UInt32;
00059 typedef signed __int64 Int64;
00060 typedef unsigned __int64 UInt64;
00061 #if defined(_WIN64)
00062 #define POCO_PTR_IS_64_BIT 1
00063 typedef signed __int64 IntPtr;
00064 typedef unsigned __int64 UIntPtr;
00065 #else
00066 typedef signed long IntPtr;
00067 typedef unsigned long UIntPtr;
00068 #endif
00069 #define POCO_HAVE_INT64 1
00070 #elif defined(__GNUC__)
00071
00072
00073
00074 typedef signed char Int8;
00075 typedef unsigned char UInt8;
00076 typedef signed short Int16;
00077 typedef unsigned short UInt16;
00078 typedef signed int Int32;
00079 typedef unsigned int UInt32;
00080 typedef signed long IntPtr;
00081 typedef unsigned long UIntPtr;
00082 #if defined(__LP64__)
00083 #define POCO_PTR_IS_64_BIT 1
00084 #define POCO_LONG_IS_64_BIT 1
00085 typedef signed long Int64;
00086 typedef unsigned long UInt64;
00087 #else
00088 typedef signed long long Int64;
00089 typedef unsigned long long UInt64;
00090 #endif
00091 #define POCO_HAVE_INT64 1
00092 #elif defined(__DECCXX)
00093
00094
00095
00096 typedef signed char Int8;
00097 typedef unsigned char UInt8;
00098 typedef signed short Int16;
00099 typedef unsigned short UInt16;
00100 typedef signed int Int32;
00101 typedef unsigned int UInt32;
00102 typedef signed __int64 Int64;
00103 typedef unsigned __int64 UInt64;
00104 #if defined(__VMS)
00105 #if defined(__32BITS)
00106 typedef signed long IntPtr;
00107 typedef unsigned long UIntPtr;
00108 #else
00109 typedef Int64 IntPtr;
00110 typedef UInt64 UIntPtr;
00111 #define POCO_PTR_IS_64_BIT 1
00112 #endif
00113 #else
00114 typedef signed long IntPtr;
00115 typedef unsigned long UIntPtr;
00116 #define POCO_PTR_IS_64_BIT 1
00117 #define POCO_LONG_IS_64_BIT 1
00118 #endif
00119 #define POCO_HAVE_INT64 1
00120 #elif defined(__HP_aCC)
00121
00122
00123
00124 typedef signed char Int8;
00125 typedef unsigned char UInt8;
00126 typedef signed short Int16;
00127 typedef unsigned short UInt16;
00128 typedef signed int Int32;
00129 typedef unsigned int UInt32;
00130 typedef signed long IntPtr;
00131 typedef unsigned long UIntPtr;
00132 #if defined(__LP64__)
00133 #define POCO_PTR_IS_64_BIT 1
00134 #define POCO_LONG_IS_64_BIT 1
00135 typedef signed long Int64;
00136 typedef unsigned long UInt64;
00137 #else
00138 typedef signed long long Int64;
00139 typedef unsigned long long UInt64;
00140 #endif
00141 #define POCO_HAVE_INT64 1
00142 #elif defined(__SUNPRO_CC)
00143
00144
00145
00146 typedef signed char Int8;
00147 typedef unsigned char UInt8;
00148 typedef signed short Int16;
00149 typedef unsigned short UInt16;
00150 typedef signed int Int32;
00151 typedef unsigned int UInt32;
00152 typedef signed long IntPtr;
00153 typedef unsigned long UIntPtr;
00154 #if defined(__sparcv9)
00155 #define POCO_PTR_IS_64_BIT 1
00156 #define POCO_LONG_IS_64_BIT 1
00157 typedef signed long Int64;
00158 typedef unsigned long UInt64;
00159 #else
00160 typedef signed long long Int64;
00161 typedef unsigned long long UInt64;
00162 #endif
00163 #define POCO_HAVE_INT64 1
00164 #elif defined(__IBMCPP__)
00165
00166
00167
00168 typedef signed char Int8;
00169 typedef unsigned char UInt8;
00170 typedef signed short Int16;
00171 typedef unsigned short UInt16;
00172 typedef signed int Int32;
00173 typedef unsigned int UInt32;
00174 typedef signed long IntPtr;
00175 typedef unsigned long UIntPtr;
00176 #if defined(__64BIT__)
00177 #define POCO_PTR_IS_64_BIT 1
00178 #define POCO_LONG_IS_64_BIT 1
00179 typedef signed long Int64;
00180 typedef unsigned long UInt64;
00181 #else
00182 typedef signed long long Int64;
00183 typedef unsigned long long UInt64;
00184 #endif
00185 #define POCO_HAVE_INT64 1
00186 #elif defined(__sgi)
00187
00188
00189
00190 typedef signed char Int8;
00191 typedef unsigned char UInt8;
00192 typedef signed short Int16;
00193 typedef unsigned short UInt16;
00194 typedef signed int Int32;
00195 typedef unsigned int UInt32;
00196 typedef signed long IntPtr;
00197 typedef unsigned long UIntPtr;
00198 #if _MIPS_SZLONG == 64
00199 #define POCO_PTR_IS_64_BIT 1
00200 #define POCO_LONG_IS_64_BIT 1
00201 typedef signed long Int64;
00202 typedef unsigned long UInt64;
00203 #else
00204 typedef signed long long Int64;
00205 typedef unsigned long long UInt64;
00206 #endif
00207 #define POCO_HAVE_INT64 1
00208 #endif
00209
00210
00211 }
00212
00213
00214 #endif // Foundation_Types_INCLUDED