source: NonGTP/Xerces/xercesc/util/Compilers/VCPPDefs.hpp @ 188

Revision 188, 9.7 KB checked in by mattausch, 19 years ago (diff)

added xercesc to support

Line 
1/*
2 * The Apache Software License, Version 1.1
3 *
4 * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
5 * reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright
12 *    notice, this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright
15 *    notice, this list of conditions and the following disclaimer in
16 *    the documentation and/or other materials provided with the
17 *    distribution.
18 *
19 * 3. The end-user documentation included with the redistribution,
20 *    if any, must include the following acknowledgment:
21 *       "This product includes software developed by the
22 *        Apache Software Foundation (http://www.apache.org/)."
23 *    Alternately, this acknowledgment may appear in the software itself,
24 *    if and wherever such third-party acknowledgments normally appear.
25 *
26 * 4. The names "Xerces" and "Apache Software Foundation" must
27 *    not be used to endorse or promote products derived from this
28 *    software without prior written permission. For written
29 *    permission, please contact apache\@apache.org.
30 *
31 * 5. Products derived from this software may not be called "Apache",
32 *    nor may "Apache" appear in their name, without prior written
33 *    permission of the Apache Software Foundation.
34 *
35 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
36 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
37 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
39 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
42 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
43 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
45 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
46 * SUCH DAMAGE.
47 * ====================================================================
48 *
49 * This software consists of voluntary contributions made by many
50 * individuals on behalf of the Apache Software Foundation, and was
51 * originally based on software copyright (c) 1999, International
52 * Business Machines, Inc., http://www.ibm.com .  For more information
53 * on the Apache Software Foundation, please see
54 * <http://www.apache.org/>.
55 */
56
57/*
58 * $Log: VCPPDefs.hpp,v $
59 * Revision 1.9  2003/05/29 13:52:36  gareth
60 * fixed typo for version number
61 *
62 * Revision 1.8  2003/05/29 11:18:37  gareth
63 * Added macros in so we can determine whether to do things like iostream as opposed to iostream.h and whether to use std:: or not.
64 *
65 * Revision 1.7  2002/11/04 14:45:20  tng
66 * C++ Namespace Support.
67 *
68 * Revision 1.6  2002/06/25 16:05:24  tng
69 * DOM L3: move the operator delete to DOMDocumentImpl.hpp
70 *
71 * Revision 1.5  2002/05/28 12:57:17  tng
72 * Fix typo.
73 *
74 * Revision 1.4  2002/05/27 18:02:40  tng
75 * define XMLSize_t, XMLSSize_t and their associate MAX
76 *
77 * Revision 1.3  2002/05/21 19:45:53  tng
78 * Define DOMSize_t and XMLSize_t
79 *
80 * Revision 1.2  2002/04/17 20:30:01  tng
81 * [Bug 7583] Build warnings with MS Visual Studio .NET.
82 *
83 * Revision 1.1.1.1  2002/02/01 22:22:19  peiyongz
84 * sane_include
85 *
86 * Revision 1.13  2001/06/04 20:11:54  tng
87 * IDOM: Complete IDNodeIterator, IDTreeWalker, IDNodeFilter.
88 *
89 * Revision 1.12  2001/06/04 13:45:06  tng
90 * The "hash" argument clashes with STL hash.  Fixed by Pei Yong Zhang.
91 *
92 * Revision 1.11  2001/05/29 18:50:24  tng
93 * IDOM: call allocate directly for array allocation to avoid overloading operator new[] which leads to compilation error on SUN CC 4.2
94 *
95 * Revision 1.10  2001/05/28 20:59:21  tng
96 * IDOM: move operator new[] to VCPPDefs as only Windows VCPP requires its presense
97 *
98 * Revision 1.9  2001/05/23 20:35:03  tng
99 * IDOM: Move operator delete to VCPPDefs.hpp as only VCPP needs a matching delete operator.
100 *
101 * Revision 1.8  2001/03/02 20:53:08  knoaman
102 * Schema: Regular expression - misc. updates for error messages,
103 * and additions of new functions to XMLString class.
104 *
105 * Revision 1.7  2000/06/16 21:13:23  rahulj
106 * Add 'D' suffix to the library name for the 'DEBUG' build
107 * configuration.
108 *
109 * Revision 1.6  2000/03/02 19:55:09  roddey
110 * This checkin includes many changes done while waiting for the
111 * 1.1.0 code to be finished. I can't list them all here, but a list is
112 * available elsewhere.
113 *
114 * Revision 1.5  2000/02/06 07:48:18  rahulj
115 * Year 2K copyright swat.
116 *
117 * Revision 1.4  2000/01/14 01:19:22  roddey
118 * Added a define of XML_LSTRSUPPORT to indicate supoprt of L"" type
119 * prefixes on this compiler.
120 *
121 * Revision 1.3  2000/01/14 00:51:30  roddey
122 * Added the requested XMLStrL() macro to support some portable
123 * optimization of DOM code. This still needs to be added to the other
124 * per-compiler files.
125 *
126 * Revision 1.2  1999/11/10 21:26:14  abagchi
127 * Changed the DLL name
128 *
129 * Revision 1.1.1.1  1999/11/09 01:07:41  twl
130 * Initial checkin
131 *
132 * Revision 1.3  1999/11/08 20:45:25  rahul
133 * Swat for adding in Product name and CVS comment log variable.
134 *
135 */
136
137#if !defined(VCPPDEFS_HPP)
138#define VCPPDEFS_HPP
139
140// ---------------------------------------------------------------------------
141//  Include some runtime files that will be needed product wide
142// ---------------------------------------------------------------------------
143#include <sys/types.h>  // for size_t and ssize_t
144#include <limits.h>  // for MAX of size_t and ssize_t
145
146// ---------------------------------------------------------------------------
147//  A define in the build for each project is also used to control whether
148//  the export keyword is from the project's viewpoint or the client's.
149//  These defines provide the platform specific keywords that they need
150//  to do this.
151// ---------------------------------------------------------------------------
152#define PLATFORM_EXPORT     __declspec(dllexport)
153#define PLATFORM_IMPORT     __declspec(dllimport)
154
155//#define PLATFORM_EXPORT
156//#define PLATFORM_IMPORT
157
158// ---------------------------------------------------------------------------
159//  Indicate that we do not support native bools
160//  If the compiler can handle boolean itself, do not define it
161// ---------------------------------------------------------------------------
162// #define NO_NATIVE_BOOL
163
164// ---------------------------------------------------------------------------
165//  Each compiler might support L"" prefixed constants. There are places
166//  where it is advantageous to use the L"" where it supported, to avoid
167//  unnecessary transcoding.
168//  If your compiler does not support it, don't define this.
169// ---------------------------------------------------------------------------
170#define XML_LSTRSUPPORT
171
172// ---------------------------------------------------------------------------
173//  Indicate that we support C++ namespace
174//  Do not define it if the compile cannot handle C++ namespace
175// ---------------------------------------------------------------------------
176#define XERCES_HAS_CPP_NAMESPACE
177
178// ---------------------------------------------------------------------------
179//  Define our version of the XML character
180// ---------------------------------------------------------------------------
181typedef unsigned short  XMLCh;
182
183// ---------------------------------------------------------------------------
184//  Define unsigned 16 and 32 bits integers
185// ---------------------------------------------------------------------------
186typedef unsigned short  XMLUInt16;
187typedef unsigned int    XMLUInt32;
188
189// ---------------------------------------------------------------------------
190//  Define signed 32 bits integers
191// ---------------------------------------------------------------------------
192typedef int             XMLInt32;
193
194// ---------------------------------------------------------------------------
195//  XMLSize_t is the unsigned integral type.
196// ---------------------------------------------------------------------------
197#if defined(_SIZE_T) && defined(SIZE_MAX) && defined(_SSIZE_T) && defined(SSIZE_MAX)
198    typedef size_t              XMLSize_t;
199    #define XML_SIZE_MAX        SIZE_MAX
200    typedef ssize_t             XMLSSize_t;
201    #define XML_SSIZE_MAX       SSIZE_MAX
202#else
203    typedef unsigned long       XMLSize_t;
204    #define XML_SIZE_MAX        ULONG_MAX
205    typedef long                XMLSSize_t;
206    #define XML_SSIZE_MAX       LONG_MAX
207#endif
208
209// ---------------------------------------------------------------------------
210//  Force on the Xerces debug token if it was on in the build environment
211// ---------------------------------------------------------------------------
212#if defined(_DEBUG)
213#define XERCES_DEBUG
214#endif
215
216#if _MSC_VER > 1300
217#define XERCES_NEW_IOSTREAMS
218#define XERCES_STD_NAMESPACE
219#endif
220
221// ---------------------------------------------------------------------------
222//  The name of the DLL that is built by the Visual C++ version of the
223//  system. We append a previously defined token which holds the DLL
224//  versioning string. This is defined in XercesDefs.hpp which is what this
225//  file is included into.
226// ---------------------------------------------------------------------------
227#if defined(XERCES_DEBUG)
228const char* const Xerces_DLLName = "xerces-c_" Xerces_DLLVersionStr "D";
229#else
230const char* const Xerces_DLLName = "xerces-c_" Xerces_DLLVersionStr;
231#endif
232
233
234#endif //VCPPDEFS_HPP
235
Note: See TracBrowser for help on using the repository browser.