00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one or more 00003 * contributor license agreements. See the NOTICE file distributed with 00004 * this work for additional information regarding copyright ownership. 00005 * The ASF licenses this file to You under the Apache License, Version 2.0 00006 * (the "License"); you may not use this file except in compliance with 00007 * the License. You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 00018 /* 00019 * $Id$ 00020 */ 00021 00022 #if !defined(XERCESC_INCLUDE_GUARD_XERCES_AUTOCONFIG_CONFIG_HPP) 00023 #define XERCESC_INCLUDE_GUARD_XERCES_AUTOCONFIG_CONFIG_HPP 00024 00025 // 00026 // There are two primary xerces configuration header files: 00027 // 00028 // Xerces_autoconf_config.hpp 00029 // 00030 // For configuration of items that must be accessable 00031 // through public headers. This file has limited information 00032 // and carefully works to avoid collision of macro names, etc. 00033 // 00034 // This file is included by XercesDefs.h. 00035 // This version of the file is specific for Borland C++ 00036 // family of compilers 00037 // 00038 // config.h 00039 // 00040 // This file is not used with Borland C++; the macros 00041 // it would specify are instead hardcoded in the makefiles 00042 // 00043 00044 #include <basetsd.h> 00045 00046 // --------------------------------------------------------------------------- 00047 // These defines have been hardcoded for the Borland C++ compilers 00048 // --------------------------------------------------------------------------- 00049 #undef XERCES_AUTOCONF 00050 #undef XERCES_HAVE_SYS_TYPES_H 00051 #undef XERCES_HAVE_INTTYPES_H 00052 00053 #define XERCES_S16BIT_INT signed short 00054 #define XERCES_U16BIT_INT unsigned short 00055 #define XERCES_S32BIT_INT INT32 00056 #define XERCES_U32BIT_INT UINT32 00057 #define XERCES_S64BIT_INT INT64 00058 #define XERCES_U64BIT_INT UINT64 00059 00060 #define XERCES_XMLCH_T wchar_t 00061 00062 #define XERCES_SIZE_T SIZE_T 00063 #define XERCES_SSIZE_T SSIZE_T 00064 00065 #define XERCES_HAS_CPP_NAMESPACE 1 00066 #define XERCES_STD_NAMESPACE 1 00067 #define XERCES_NEW_IOSTREAMS 1 00068 #undef XERCES_NO_NATIVE_BOOL 00069 #define XERCES_LSTRSUPPORT 1 00070 00071 #ifdef XERCES_STATIC_LIBRARY 00072 #define XERCES_PLATFORM_EXPORT 00073 #define XERCES_PLATFORM_IMPORT 00074 #else 00075 #define XERCES_PLATFORM_EXPORT __declspec(dllexport) 00076 #define XERCES_PLATFORM_IMPORT __declspec(dllimport) 00077 #define DLL_EXPORT 00078 #endif 00079 00080 #define XERCES_NO_MATCHING_DELETE_OPERATOR 00081 #define XERCES_NEED_XMEMORY_VIRTUAL_DESTRUCTOR 00082 00083 // --------------------------------------------------------------------------- 00084 // XMLSize_t is the unsigned integral type. 00085 // --------------------------------------------------------------------------- 00086 typedef XERCES_SIZE_T XMLSize_t; 00087 typedef XERCES_SSIZE_T XMLSSize_t; 00088 00089 // --------------------------------------------------------------------------- 00090 // Define our version of the XML character 00091 // --------------------------------------------------------------------------- 00092 typedef XERCES_XMLCH_T XMLCh; 00093 00094 // --------------------------------------------------------------------------- 00095 // Define unsigned 16, 32, and 64 bit integers 00096 // --------------------------------------------------------------------------- 00097 typedef XERCES_U16BIT_INT XMLUInt16; 00098 typedef XERCES_U32BIT_INT XMLUInt32; 00099 typedef XERCES_U64BIT_INT XMLUInt64; 00100 00101 // --------------------------------------------------------------------------- 00102 // Define signed 16, 32, and 64 bit integers 00103 // --------------------------------------------------------------------------- 00104 typedef XERCES_S16BIT_INT XMLInt16; 00105 typedef XERCES_S32BIT_INT XMLInt32; 00106 typedef XERCES_S64BIT_INT XMLInt64; 00107 00108 // --------------------------------------------------------------------------- 00109 // XMLFilePos is the type used to represent a file position. 00110 // --------------------------------------------------------------------------- 00111 typedef XMLUInt64 XMLFilePos; 00112 00113 // --------------------------------------------------------------------------- 00114 // XMLFileLoc is the type used to represent a file location (line/column). 00115 // --------------------------------------------------------------------------- 00116 typedef XMLUInt64 XMLFileLoc; 00117 00118 // --------------------------------------------------------------------------- 00119 // Force on the Xerces debug token if it is on in the build environment 00120 // --------------------------------------------------------------------------- 00121 #if defined(_DEBUG) 00122 #define XERCES_DEBUG 00123 #endif 00124 00125 #endif