Xerces-C++  3.1.3
Xerces_autoconf_config.borland.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /*
19  * $Id: Xerces_autoconf_config.borland.hpp 834826 2009-11-11 10:03:53Z borisk $
20  */
21 
22 #if !defined(XERCESC_INCLUDE_GUARD_XERCES_AUTOCONFIG_CONFIG_HPP)
23 #define XERCESC_INCLUDE_GUARD_XERCES_AUTOCONFIG_CONFIG_HPP
24 
25 //
26 // There are two primary xerces configuration header files:
27 //
28 // Xerces_autoconf_config.hpp
29 //
30 // For configuration of items that must be accessable
31 // through public headers. This file has limited information
32 // and carefully works to avoid collision of macro names, etc.
33 //
34 // This file is included by XercesDefs.h.
35 // This version of the file is specific for Borland C++
36 // family of compilers
37 //
38 // config.h
39 //
40 // This file is not used with Borland C++; the macros
41 // it would specify are instead hardcoded in the makefiles
42 //
43 
44 #include <basetsd.h>
45 
46 // ---------------------------------------------------------------------------
47 // These defines have been hardcoded for the Borland C++ compilers
48 // ---------------------------------------------------------------------------
49 #undef XERCES_AUTOCONF
50 #undef XERCES_HAVE_SYS_TYPES_H
51 #undef XERCES_HAVE_INTTYPES_H
52 
53 #define XERCES_S16BIT_INT signed short
54 #define XERCES_U16BIT_INT unsigned short
55 #define XERCES_S32BIT_INT INT32
56 #define XERCES_U32BIT_INT UINT32
57 #define XERCES_S64BIT_INT INT64
58 #define XERCES_U64BIT_INT UINT64
59 
60 #define XERCES_XMLCH_T wchar_t
61 
62 #define XERCES_SIZE_T SIZE_T
63 #define XERCES_SSIZE_T SSIZE_T
64 
65 #define XERCES_HAS_CPP_NAMESPACE 1
66 #define XERCES_STD_NAMESPACE 1
67 #define XERCES_NEW_IOSTREAMS 1
68 #undef XERCES_NO_NATIVE_BOOL
69 #define XERCES_LSTRSUPPORT 1
70 
71 #ifdef XERCES_STATIC_LIBRARY
72 #define XERCES_PLATFORM_EXPORT
73 #define XERCES_PLATFORM_IMPORT
74 #else
75 #define XERCES_PLATFORM_EXPORT __declspec(dllexport)
76 #define XERCES_PLATFORM_IMPORT __declspec(dllimport)
77 #define DLL_EXPORT
78 #endif
79 
80 #define XERCES_NO_MATCHING_DELETE_OPERATOR
81 #define XERCES_NEED_XMEMORY_VIRTUAL_DESTRUCTOR
82 
83 // ---------------------------------------------------------------------------
84 // XMLSize_t is the unsigned integral type.
85 // ---------------------------------------------------------------------------
88 
89 // ---------------------------------------------------------------------------
90 // Define our version of the XML character
91 // ---------------------------------------------------------------------------
93 
94 // ---------------------------------------------------------------------------
95 // Define unsigned 16, 32, and 64 bit integers
96 // ---------------------------------------------------------------------------
100 
101 // ---------------------------------------------------------------------------
102 // Define signed 16, 32, and 64 bit integers
103 // ---------------------------------------------------------------------------
107 
108 // ---------------------------------------------------------------------------
109 // XMLFilePos is the type used to represent a file position.
110 // ---------------------------------------------------------------------------
112 
113 // ---------------------------------------------------------------------------
114 // XMLFileLoc is the type used to represent a file location (line/column).
115 // ---------------------------------------------------------------------------
117 
118 // ---------------------------------------------------------------------------
119 // Force on the Xerces debug token if it is on in the build environment
120 // ---------------------------------------------------------------------------
121 #if defined(_DEBUG)
122 #define XERCES_DEBUG
123 #endif
124 
125 #endif