1 | /*
|
---|
2 | * Copyright 2003,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: QCCDefs.hpp,v $
|
---|
19 | * Revision 1.2 2004/09/08 13:56:32 peiyongz
|
---|
20 | * Apache License Version 2.0
|
---|
21 | *
|
---|
22 | * Revision 1.1 2003/03/13 22:11:39 tng
|
---|
23 | * [Bug 17858] Support for QNX/Neutrino. Patch from Chris McKillop.
|
---|
24 | *
|
---|
25 | */
|
---|
26 |
|
---|
27 | #if !defined(QCCDEFS_HPP)
|
---|
28 | #define QCCDEFS_HPP
|
---|
29 |
|
---|
30 | // ---------------------------------------------------------------------------
|
---|
31 | // Include some runtime files that will be needed product wide
|
---|
32 | // ---------------------------------------------------------------------------
|
---|
33 | #include <sys/types.h>
|
---|
34 | #include <limits.h>
|
---|
35 | #include <inttypes.h>
|
---|
36 |
|
---|
37 | // ---------------------------------------------------------------------------
|
---|
38 | // A define in the build for each project is also used to control whether
|
---|
39 | // the export keyword is from the project's viewpoint or the client's.
|
---|
40 | // These defines provide the platform specific keywords that they need
|
---|
41 | // to do this.
|
---|
42 | // ---------------------------------------------------------------------------
|
---|
43 | #define PLATFORM_EXPORT
|
---|
44 | #define PLATFORM_IMPORT
|
---|
45 |
|
---|
46 | // ---------------------------------------------------------------------------
|
---|
47 | // Indicate that we do not support native bools
|
---|
48 | // If the compiler can handle boolean itself, do not define it
|
---|
49 | // ---------------------------------------------------------------------------
|
---|
50 | // #define NO_NATIVE_BOOL
|
---|
51 |
|
---|
52 | // ---------------------------------------------------------------------------
|
---|
53 | // Each compiler might support L"" prefixed constants. There are places
|
---|
54 | // where it is advantageous to use the L"" where it supported, to avoid
|
---|
55 | // unnecessary transcoding.
|
---|
56 | // If your compiler does not support it, don't define this.
|
---|
57 | // ---------------------------------------------------------------------------
|
---|
58 | // #define XML_LSTRSUPPORT
|
---|
59 |
|
---|
60 | // ---------------------------------------------------------------------------
|
---|
61 | // Indicate that we support C++ namespace
|
---|
62 | // Do not define it if the compile cannot handle C++ namespace
|
---|
63 | // ---------------------------------------------------------------------------
|
---|
64 | #define XERCES_HAS_CPP_NAMESPACE
|
---|
65 |
|
---|
66 | // ---------------------------------------------------------------------------
|
---|
67 | // Define our version of the XML character
|
---|
68 | // ---------------------------------------------------------------------------
|
---|
69 | typedef uint16_t XMLCh;
|
---|
70 |
|
---|
71 | // ---------------------------------------------------------------------------
|
---|
72 | // Define unsigned 16 and 32 bits integers
|
---|
73 | // ---------------------------------------------------------------------------
|
---|
74 | typedef uint16_t XMLUInt16;
|
---|
75 | typedef uint32_t XMLUInt32;
|
---|
76 |
|
---|
77 | // ---------------------------------------------------------------------------
|
---|
78 | // Define signed 32 bits integers
|
---|
79 | // ---------------------------------------------------------------------------
|
---|
80 | typedef int32_t XMLInt32;
|
---|
81 |
|
---|
82 | // ---------------------------------------------------------------------------
|
---|
83 | // XMLSize_t is the unsigned integral type.
|
---|
84 | // ---------------------------------------------------------------------------
|
---|
85 | typedef size_t XMLSize_t;
|
---|
86 | #define XML_SIZE_MAX SIZE_MAX
|
---|
87 | typedef ssize_t XMLSSize_t;
|
---|
88 | #define XML_SSIZE_MAX SSIZE_MAX
|
---|
89 |
|
---|
90 | // ---------------------------------------------------------------------------
|
---|
91 | // Force on the Xerces debug token if it was on in the build environment
|
---|
92 | // ---------------------------------------------------------------------------
|
---|
93 | // #if defined(_DEBUG)
|
---|
94 | // #define XERCES_DEBUG
|
---|
95 | // #endif
|
---|
96 |
|
---|
97 |
|
---|
98 | // ---------------------------------------------------------------------------
|
---|
99 | // The name of the DLL that is built by the QCC version of the system.
|
---|
100 | // ---------------------------------------------------------------------------
|
---|
101 | const char* const Xerces_DLLName = "libxerces-c";
|
---|
102 |
|
---|
103 | #endif // QCCDEFS_HPP
|
---|
104 |
|
---|