[2674] | 1 | #if (__OS400_TGTVRM__>=510) /* @01a */ |
---|
| 2 | #pragma datamodel(P128) /* @01a */ |
---|
| 3 | #endif /* @01a */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 7 | * contributor license agreements. See the NOTICE file distributed with |
---|
| 8 | * this work for additional information regarding copyright ownership. |
---|
| 9 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 10 | * (the "License"); you may not use this file except in compliance with |
---|
| 11 | * the License. You may obtain a copy of the License at |
---|
| 12 | * |
---|
| 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 14 | * |
---|
| 15 | * Unless required by applicable law or agreed to in writing, software |
---|
| 16 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 17 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 18 | * See the License for the specific language governing permissions and |
---|
| 19 | * limitations under the License. |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | /* |
---|
| 23 | * $Id: OS400SetDefs.hpp 568078 2007-08-21 11:43:25Z amassari $ |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | #ifndef OS400SETDEFS_H |
---|
| 28 | #define OS400SETDEFS_H |
---|
| 29 | |
---|
| 30 | // --------------------------------------------------------------------------- |
---|
| 31 | // Include some runtime files that will be needed product wide |
---|
| 32 | // --------------------------------------------------------------------------- |
---|
| 33 | #include <sys/types.h> // for size_t and ssize_t |
---|
| 34 | #include <limits.h> // for MAX of size_t and ssize_t |
---|
| 35 | |
---|
| 36 | // --------------------------------------------------------------------------- |
---|
| 37 | // A define in the build for each project is also used to control whether |
---|
| 38 | // the export keyword is from the project's viewpoint or the client's. |
---|
| 39 | // These defines provide the platform specific keywords that they need |
---|
| 40 | // to do this. |
---|
| 41 | // --------------------------------------------------------------------------- |
---|
| 42 | #define PLATFORM_EXPORT |
---|
| 43 | #define PLATFORM_IMPORT |
---|
| 44 | |
---|
| 45 | // --------------------------------------------------------------------------- |
---|
| 46 | // Indicate that we do not support native bools |
---|
| 47 | // If the compiler can handle boolean itself, do not define it |
---|
| 48 | // --------------------------------------------------------------------------- |
---|
| 49 | #if !defined(__BOOL__) |
---|
| 50 | #define NO_NATIVE_BOOL |
---|
| 51 | #endif |
---|
| 52 | |
---|
| 53 | // --------------------------------------------------------------------------- |
---|
| 54 | // Each compiler might support L"" prefixed constants. There are places |
---|
| 55 | // where it is advantageous to use the L"" where it supported, to avoid |
---|
| 56 | // unnecessary transcoding. |
---|
| 57 | // If your compiler does not support it, don't define this. |
---|
| 58 | // --------------------------------------------------------------------------- |
---|
| 59 | // #define XML_LSTRSUPPORT |
---|
| 60 | |
---|
| 61 | // --------------------------------------------------------------------------- |
---|
| 62 | // Indicate that we support C++ namespace |
---|
| 63 | // Do not define it if the compile cannot handle C++ namespace |
---|
| 64 | // --------------------------------------------------------------------------- |
---|
| 65 | #define XERCES_HAS_CPP_NAMESPACE |
---|
| 66 | |
---|
| 67 | // --------------------------------------------------------------------------- |
---|
| 68 | // Define our version of the XML character |
---|
| 69 | // --------------------------------------------------------------------------- |
---|
| 70 | typedef unsigned short XMLCh; |
---|
| 71 | |
---|
| 72 | // --------------------------------------------------------------------------- |
---|
| 73 | // Define unsigned 16 and 32 bits integers |
---|
| 74 | // --------------------------------------------------------------------------- |
---|
| 75 | typedef unsigned short XMLUInt16; |
---|
| 76 | typedef unsigned int XMLUInt32; |
---|
| 77 | |
---|
| 78 | // --------------------------------------------------------------------------- |
---|
| 79 | // Define signed 32 bits integers |
---|
| 80 | // --------------------------------------------------------------------------- |
---|
| 81 | typedef int XMLInt32; |
---|
| 82 | |
---|
| 83 | // --------------------------------------------------------------------------- |
---|
| 84 | // XMLSize_t is the unsigned integral type. |
---|
| 85 | // --------------------------------------------------------------------------- |
---|
| 86 | #if defined(_SIZE_T) && defined(SIZE_MAX) && defined(_SSIZE_T) && defined(SSIZE_MAX) |
---|
| 87 | typedef size_t XMLSize_t; |
---|
| 88 | #define XML_SIZE_MAX SIZE_MAX |
---|
| 89 | typedef ssize_t XMLSSize_t; |
---|
| 90 | #define XML_SSIZE_MAX SSIZE_MAX |
---|
| 91 | #else |
---|
| 92 | typedef unsigned long XMLSize_t; |
---|
| 93 | #define XML_SIZE_MAX ULONG_MAX |
---|
| 94 | typedef long XMLSSize_t; |
---|
| 95 | #define XML_SSIZE_MAX LONG_MAX |
---|
| 96 | #endif |
---|
| 97 | |
---|
| 98 | // --------------------------------------------------------------------------- |
---|
| 99 | // Force on the Xerces debug token if it was on in the build environment |
---|
| 100 | // --------------------------------------------------------------------------- |
---|
| 101 | #if defined(_DEBUG) |
---|
| 102 | #define XERCES_DEBUG |
---|
| 103 | #endif |
---|
| 104 | |
---|
| 105 | |
---|
| 106 | // --------------------------------------------------------------------------- |
---|
| 107 | // The name of the DLL that is built by the CSet C++ version of the |
---|
| 108 | // system. We append a previously defined token which holds the DLL |
---|
| 109 | // versioning string. This is defined in XercesDefs.hpp which is what this |
---|
| 110 | // file is included into. |
---|
| 111 | // --------------------------------------------------------------------------- |
---|
| 112 | const char* const Xerces_DLLName = "libxercesc"; |
---|
| 113 | |
---|
| 114 | #endif //OS400SETDEFS_H |
---|
| 115 | #if (__OS400_TGTVRM__>=510) /* @01a */ |
---|
| 116 | #pragma datamodel(pop) /* @01a */ |
---|
| 117 | #endif /* @01a */ |
---|
| 118 | |
---|