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

Revision 358, 4.6 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 * $Id: IBMVAOS2Defs.hpp,v 1.6 2004/09/08 13:56:32 peiyongz Exp $
19 */
20
21#if !defined(IBMVAOS2DEFS_HPP)
22#define IBMVAOS2DEFS_HPP
23
24// ---------------------------------------------------------------------------
25//  Include some runtime files that will be needed product wide
26// ---------------------------------------------------------------------------
27#include <sys/types.h>  // for size_t and ssize_t
28#include <limits.h>  // for MAX of size_t and ssize_t
29
30// ---------------------------------------------------------------------------
31//  A define in the build for each project is also used to control whether
32//  the export keyword is from the project's viewpoint or the client's.
33//  These defines provide the platform specific keywords that they need
34//  to do this.
35// ---------------------------------------------------------------------------
36#define PLATFORM_EXPORT     _Export
37#define PLATFORM_IMPORT
38
39// ---------------------------------------------------------------------------
40//  Indicate that we do not support native bools
41//  If the compiler can handle boolean itself, do not define it
42// ---------------------------------------------------------------------------
43// #define NO_NATIVE_BOOL
44
45// ---------------------------------------------------------------------------
46//  Each compiler might support L"" prefixed constants. There are places
47//  where it is advantageous to use the L"" where it supported, to avoid
48//  unnecessary transcoding.
49//  If your compiler does not support it, don't define this.
50// ---------------------------------------------------------------------------
51#define XML_LSTRSUPPORT
52
53// ---------------------------------------------------------------------------
54//  Indicate that we support C++ namespace
55//  Do not define it if the compile cannot handle C++ namespace
56// ---------------------------------------------------------------------------
57// #define XERCES_HAS_CPP_NAMESPACE
58
59// ---------------------------------------------------------------------------
60//  Define our version of the XML character
61// ---------------------------------------------------------------------------
62typedef unsigned short XMLCh;
63
64// ---------------------------------------------------------------------------
65//  Define unsigned 16 and 32 bits integers
66// ---------------------------------------------------------------------------
67typedef unsigned short XMLUInt16;
68typedef unsigned int   XMLUInt32;
69
70// ---------------------------------------------------------------------------
71//  Define signed 32 bits integers
72// ---------------------------------------------------------------------------
73typedef int             XMLInt32;
74
75// ---------------------------------------------------------------------------
76//  XMLSize_t is the unsigned integral type.
77// ---------------------------------------------------------------------------
78#if defined(_SIZE_T) && defined(SIZE_MAX) && defined(_SSIZE_T) && defined(SSIZE_MAX)
79    typedef size_t              XMLSize_t;
80    #define XML_SIZE_MAX        SIZE_MAX
81    typedef ssize_t             XMLSSize_t;
82    #define XML_SSIZE_MAX       SSIZE_MAX
83#else
84    typedef unsigned long       XMLSize_t;
85    #define XML_SIZE_MAX        ULONG_MAX
86    typedef long                XMLSSize_t;
87    #define XML_SSIZE_MAX       LONG_MAX
88#endif
89
90// ---------------------------------------------------------------------------
91//  Force on the Xerces debug token if it was on in the build environment
92// ---------------------------------------------------------------------------
93#ifdef _DEBUG
94#define XERCES_DEBUG
95#endif
96
97
98// ---------------------------------------------------------------------------
99//  The name of the DLL that is built by the Visual Age C++ version of the
100//  system. OS/2 supports only 8.3 names for DLLs.
101// ---------------------------------------------------------------------------
102const char* const Xerces_DLLName = "xerces-c";
103
104
105#endif //IBMVAOS2DEFS_HPP
Note: See TracBrowser for help on using the repository browser.