source: trunk/VUT/GtpVisibilityPreprocessor/support/xerces/include/xercesc/util/Compilers/HPCCDefs.hpp @ 358

Revision 358, 6.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: HPCCDefs.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.11  2001/03/02 20:52:59  knoaman
38 * Schema: Regular expression - misc. updates for error messages,
39 * and additions of new functions to XMLString class.
40 *
41 * Revision 1.10  2000/03/29 00:41:07  aruna1
42 * Modified bool warnings for HP CC
43 *
44 * Revision 1.9  2000/03/02 19:55:08  roddey
45 * This checkin includes many changes done while waiting for the
46 * 1.1.0 code to be finished. I can't list them all here, but a list is
47 * available elsewhere.
48 *
49 * Revision 1.8  2000/02/06 07:48:17  rahulj
50 * Year 2K copyright swat.
51 *
52 * Revision 1.7  2000/01/18 22:37:20  aruna1
53 * Modified XMLCh to unsigned short
54 *
55 * Revision 1.6  2000/01/18 21:32:21  aruna1
56 * XMLCh assigned to wchar_t
57 *
58 * Revision 1.5  1999/12/14 23:53:25  rahulj
59 * Removed the offending Ctrl-M's from the commit message
60 * logs which was giving packaging problems.
61 *
62 * PR:
63 * Obtained from:
64 * Submitted by:
65 * Reviewed by:
66 *
67 * Revision 1.4  1999/11/23 02:00:12  rahulj
68 * Code now works under HPUX 11. Tested inmemory message loader.
69 * Revamped makefiles. Builds with both DCE threads as well as pthread libraries.
70 *
71 * Revision 1.3  1999/11/12 20:36:57  rahulj
72 * Changed library name to xerces-c.lib.
73 *
74 * Revision 1.1.1.1  1999/11/09 01:07:34  twl
75 * Initial checkin
76 *
77 * Revision 1.2  1999/11/08 20:45:23  rahul
78 * Swat for adding in Product name and CVS comment log variable.
79 *
80 */
81
82#if !defined(HPCCDEFS_HPP)
83#define HPCCDEFS_HPP
84
85// ---------------------------------------------------------------------------
86//  Include some runtime files that will be needed product wide
87// ---------------------------------------------------------------------------
88#include <sys/types.h>  // for size_t and ssize_t
89#include <limits.h>  // for MAX of size_t and ssize_t
90
91// ---------------------------------------------------------------------------
92//  A define in the build for each project is also used to control whether
93//  the export keyword is from the project's viewpoint or the client's.
94//  These defines provide the platform specific keywords that they need
95//  to do this.
96// ---------------------------------------------------------------------------
97#define PLATFORM_EXPORT
98#define PLATFORM_IMPORT
99
100// ---------------------------------------------------------------------------
101//  Indicate that we do not support native bools
102//  If the compiler can handle boolean itself, do not define it
103// ---------------------------------------------------------------------------
104// #define NO_NATIVE_BOOL
105
106// ---------------------------------------------------------------------------
107//  Each compiler might support L"" prefixed constants. There are places
108//  where it is advantageous to use the L"" where it supported, to avoid
109//  unnecessary transcoding.
110//  If your compiler does not support it, don't define this.
111// ---------------------------------------------------------------------------
112// #define XML_LSTRSUPPORT
113
114// ---------------------------------------------------------------------------
115//  Indicate that we support C++ namespace
116//  Do not define it if the compile cannot handle C++ namespace
117// ---------------------------------------------------------------------------
118#define XERCES_HAS_CPP_NAMESPACE
119
120// ---------------------------------------------------------------------------
121//  Define our version of the XML character
122// ---------------------------------------------------------------------------
123typedef unsigned short XMLCh;
124
125// ---------------------------------------------------------------------------
126//  Define unsigned 16 and 32 bits integers
127// ---------------------------------------------------------------------------
128typedef unsigned short  XMLUInt16;
129typedef unsigned int    XMLUInt32;
130
131// ---------------------------------------------------------------------------
132//  Define signed 32 bits integers
133// ---------------------------------------------------------------------------
134typedef int             XMLInt32;
135
136// ---------------------------------------------------------------------------
137//  XMLSize_t is the unsigned integral type.
138// ---------------------------------------------------------------------------
139#if defined(_SIZE_T) && defined(SIZE_MAX) && defined(_SSIZE_T) && defined(SSIZE_MAX)
140    typedef size_t              XMLSize_t;
141    #define XML_SIZE_MAX        SIZE_MAX
142    typedef ssize_t             XMLSSize_t;
143    #define XML_SSIZE_MAX       SSIZE_MAX
144#else
145    typedef unsigned long       XMLSize_t;
146    #define XML_SIZE_MAX        ULONG_MAX
147    typedef long                XMLSSize_t;
148    #define XML_SSIZE_MAX       LONG_MAX
149#endif
150
151
152// ---------------------------------------------------------------------------
153//  Force on the Xerces debug token if it was on in the build environment
154// ---------------------------------------------------------------------------
155#if defined(_DEBUG)
156#define XERCES_DEBUG
157#endif
158
159// ---------------------------------------------------------------------------
160//  Provide prototypes for some string methods that are not always available
161//  on all platforms.
162// ---------------------------------------------------------------------------
163int stricmp(const char* const str1, const char* const  str2);
164int strnicmp(const char* const str1, const char* const  str2, const unsigned int count);
165
166
167// ---------------------------------------------------------------------------
168//  The name of the DLL that is built by the system.
169// ---------------------------------------------------------------------------
170const char* const Xerces_DLLName = "libxerces-c";
171
172#endif //HPCCDEFS_HPP
Note: See TracBrowser for help on using the repository browser.