source: NonGTP/Xerces/xerces/include/xercesc/util/Compilers/IBMVAW32Defs.hpp @ 358

Revision 358, 5.7 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2002,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Log: IBMVAW32Defs.hpp,v $
19 * Revision 1.6  2004/09/08 13:56:32  peiyongz
20 * Apache License Version 2.0
21 *
22 * Revision 1.5  2002/11/04 14:45:20  tng
23 * C++ Namespace Support.
24 *
25 * Revision 1.4  2002/05/28 12:57:17  tng
26 * Fix typo.
27 *
28 * Revision 1.3  2002/05/27 18:02:40  tng
29 * define XMLSize_t, XMLSSize_t and their associate MAX
30 *
31 * Revision 1.2  2002/05/21 19:45:53  tng
32 * Define DOMSize_t and XMLSize_t
33 *
34 * Revision 1.1.1.1  2002/02/01 22:22:18  peiyongz
35 * sane_include
36 *
37 * Revision 1.5  2000/03/02 19:55:08  roddey
38 * This checkin includes many changes done while waiting for the
39 * 1.1.0 code to be finished. I can't list them all here, but a list is
40 * available elsewhere.
41 *
42 * Revision 1.4  2000/02/06 07:48:17  rahulj
43 * Year 2K copyright swat.
44 *
45 * Revision 1.3  1999/11/12 20:36:59  rahulj
46 * Changed library name to xerces-c.lib.
47 *
48 * Revision 1.1.1.1  1999/11/09 01:07:36  twl
49 * Initial checkin
50 *
51 * Revision 1.2  1999/11/08 20:45:24  rahul
52 * Swat for adding in Product name and CVS comment log variable.
53 *
54 */
55
56#if !defined(IBMVAW32DEFS_HPP)
57#define IBMVAW32DEFS_HPP
58
59// ---------------------------------------------------------------------------
60//  Include some runtime files that will be needed product wide
61// ---------------------------------------------------------------------------
62#include <sys/types.h>  // for size_t and ssize_t
63#include <limits.h>  // for MAX of size_t and ssize_t
64
65// ---------------------------------------------------------------------------
66//  A define in the build for each project is also used to control whether
67//  the export keyword is from the project's viewpoint or the client's.
68//  These defines provide the platform specific keywords that they need
69//  to do this.
70// ---------------------------------------------------------------------------
71#define PLATFORM_EXPORT     __declspec(dllexport)
72#define PLATFORM_IMPORT
73
74// ---------------------------------------------------------------------------
75//  Indicate that we do not support native bools
76//  If the compiler can handle boolean itself, do not define it
77// ---------------------------------------------------------------------------
78// #define NO_NATIVE_BOOL
79
80// ---------------------------------------------------------------------------
81//  Each compiler might support L"" prefixed constants. There are places
82//  where it is advantageous to use the L"" where it supported, to avoid
83//  unnecessary transcoding.
84//  If your compiler does not support it, don't define this.
85// ---------------------------------------------------------------------------
86// #define XML_LSTRSUPPORT
87
88// ---------------------------------------------------------------------------
89//  Indicate that we support C++ namespace
90//  Do not define it if the compile cannot handle C++ namespace
91// ---------------------------------------------------------------------------
92// #define XERCES_HAS_CPP_NAMESPACE
93
94// ---------------------------------------------------------------------------
95//  Define our version of the XML character
96// ---------------------------------------------------------------------------
97typedef unsigned short XMLCh;
98
99// ---------------------------------------------------------------------------
100//  Define unsigned 16 and 32 bits integers
101// ---------------------------------------------------------------------------
102typedef unsigned short XMLUInt16;
103typedef unsigned int   XMLUInt32;
104
105// ---------------------------------------------------------------------------
106//  Define signed 32 bits integers
107// ---------------------------------------------------------------------------
108typedef int            XMLInt32;
109
110// ---------------------------------------------------------------------------
111//  XMLSize_t is the unsigned integral type.
112// ---------------------------------------------------------------------------
113#if defined(_SIZE_T) && defined(SIZE_MAX) && defined(_SSIZE_T) && defined(SSIZE_MAX)
114    typedef size_t              XMLSize_t;
115    #define XML_SIZE_MAX        SIZE_MAX
116    typedef ssize_t             XMLSSize_t;
117    #define XML_SSIZE_MAX       SSIZE_MAX
118#else
119    typedef unsigned long       XMLSize_t;
120    #define XML_SIZE_MAX        ULONG_MAX
121    typedef long                XMLSSize_t;
122    #define XML_SSIZE_MAX       LONG_MAX
123#endif
124
125// ---------------------------------------------------------------------------
126//  Force on the Xerces debug token if it was on in the build environment
127// ---------------------------------------------------------------------------
128#ifdef _DEBUG
129#define XERCES_DEBUG
130#endif
131
132
133// ---------------------------------------------------------------------------
134//  The name of the DLL that is built by the Visual Age C++ version of the
135//  system. We append a previously defined token which holds the DLL
136//  versioning string. This is defined in XercesDefs.hpp which is what this
137//  file is included into.
138// ---------------------------------------------------------------------------
139const char* const Xerces_DLLName = "VAWXERCESC" Xerces_DLLVersionStr;
140
141#endif //IBMVAW32DEFS_HPP
Note: See TracBrowser for help on using the repository browser.