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
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185 #ifndef AUTOSENSE_HPP
00186 #define AUTOSENSE_HPP
00187
00188
00189
00190
00191
00192 #if defined(_AIX)
00193 #define XML_AIX
00194 #define XML_UNIX
00195 #if defined(_AIXVERSION_430)
00196 #define XML_AIX43 // for use of POSIX compliant pthread functions
00197 #endif
00198 #elif defined(_SEQUENT_)
00199 #define XML_PTX
00200 #define XML_UNIX
00201 #elif defined(_HP_UX) || defined(__hpux) || defined(_HPUX_SOURCE)
00202 #define XML_HPUX
00203 #define XML_UNIX
00204 #elif defined(SOLARIS) || defined(__SVR4)
00205 #define XML_SOLARIS
00206 #define XML_UNIX
00207 #elif defined(_SCO_DS)
00208 #define XML_OPENSERVER
00209 #define XML_UNIX
00210 #elif defined(__UNIXWARE__) || defined(__USLC__)
00211 #define XML_UNIXWARE
00212 #define XML_UNIX
00213 #elif defined(__BEOS__)
00214 #define XML_BEOS
00215 #define XML_UNIX
00216 #elif defined(__QNXNTO__)
00217 #define XML_QNX
00218 #define XML_UNIX
00219 #elif defined(__linux__)
00220 #define XML_LINUX
00221 #define XML_UNIX
00222 #if defined(__s390__)
00223 #define XML_LINUX_390
00224 #endif
00225 #elif defined(__FreeBSD__)
00226 #define XML_FREEBSD
00227 #define XML_UNIX
00228 #elif defined(IRIX) || defined(__sgi)
00229 #define XML_IRIX
00230 #define XML_UNIX
00231 #elif defined(__MVS__)
00232 #define XML_OS390
00233 #define XML_UNIX
00234 #elif defined(EXM_OS390)
00235 #define XML_OS390
00236 #define XML_UNIX
00237 #elif defined(__OS400__)
00238 #define XML_AS400
00239 #define XML_UNIX
00240 #elif defined(__OS2__)
00241 #define XML_OS2
00242 #elif defined(__TANDEM)
00243 #define XML_TANDEM
00244 #define XML_UNIX
00245 #define XML_CSET
00246 #elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__)
00247 #define XML_WIN32
00248 #ifndef WIN32
00249 #define WIN32
00250 #endif
00251 #elif defined(__WINDOWS__)
00252
00253
00254 #if defined(__32BIT__)
00255 #define XML_WIN32
00256 #else
00257 #define XML_WIN16
00258 #endif
00259 #elif defined(__MSDXML__)
00260 #define XML_DOS
00261
00262 #elif defined(macintosh) || (defined(__APPLE__) && defined(__MACH__))
00263 #define XML_MACOS
00264 #elif defined(__alpha) && defined(__osf__)
00265 #define XML_TRU64
00266 #elif defined(__NetBSD__)
00267 #define XML_NETBSD
00268 #elif defined(__INTERIX)
00269 #define XML_INTERIX
00270 #define XML_UNIX
00271 #else
00272 #error Code requires port to host OS!
00273 #endif
00274
00275
00276
00277
00278
00279
00280 #if defined(__BORLANDC__)
00281 #define XML_BORLAND
00282 #elif defined(_MSC_VER)
00283 #define XML_VISUALCPP
00284 #elif defined(XML_SOLARIS)
00285 #if defined(__SUNPRO_CC) && (__SUNPRO_CC >=0x500)
00286 #define XML_SUNCC5
00287 #elif defined(__SUNPRO_CC) && (__SUNPRO_CC <0x500)
00288 #define XML_SUNCC
00289 #elif defined(_EDG_RUNTIME_USES_NAMESPACES)
00290 #define XML_SOLARIS_KAICC
00291 #elif defined(__GNUG__)
00292 #define XML_GCC
00293 #else
00294 #error Code requires port to current development environment
00295 #endif
00296 #elif defined (__QNXNTO__)
00297 #define XML_QCC
00298 #elif defined (__GNUG__) || defined(__BEOS__) || defined(__linux__) || defined(__CYGWIN__)
00299 #define XML_GCC
00300 #elif defined(XML_HPUX)
00301 #if defined(EXM_HPUX)
00302 #define XML_HPUX_KAICC
00303 #elif (__cplusplus == 1)
00304 #define XML_HPUX_CC
00305 #elif (__cplusplus == 199707 || __cplusplus == 199711)
00306 #define XML_HPUX_aCC
00307 #endif
00308 #elif defined(XML_IRIX)
00309 #define XML_MIPSPRO_CC
00310 #elif defined(XML_PTX)
00311 #define XML_PTX_CC
00312 #elif defined(XML_TANDEM)
00313 #define XML_TANDEMCC
00314 #elif defined(__MVS__) && defined(__cplusplus)
00315 #define XML_MVSCPP
00316 #elif defined(EXM_OS390) && defined(__cplusplus)
00317 #define XML_MVSCPP
00318 #elif defined(__IBMC__) || defined(__IBMCPP__)
00319 #if defined(XML_WIN32)
00320 #define XML_IBMVAW32
00321 #elif defined(XML_OS2)
00322 #define XML_IBMVAOS2
00323 #if (__IBMC__ >= 400 || __IBMCPP__ >= 400)
00324 #define XML_IBMVA4_OS2
00325 #endif
00326 #elif defined(XML_AIX)
00327 #define XML_CSET
00328 #endif
00329 #elif defined(XML_TRU64) && defined(__DECCXX)
00330 #define XML_DECCXX
00331 #elif defined(__MWERKS__)
00332 #define XML_METROWERKS
00333 #elif defined(__OS400__)
00334 #else
00335 #error Code requires port to current development environment
00336 #endif
00337
00338
00339
00340
00341
00342
00343 #if defined(__GNUC__)
00344 #define XML_GCC_VERSION (__GNUC__ * 10000 \
00345 + __GNUC_MINOR__ * 100 \
00346 + __GNUC_PATCHLEVEL__)
00347 #endif
00348
00349
00350 #endif