/usr/include/xercesc/util/XercesDefs.hpp is in libxerces-c-dev 3.1.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id: XercesDefs.hpp 932887 2010-04-11 13:04:59Z borisk $
*/
#if !defined(XERCESC_INCLUDE_GUARD_XERCESDEFS_HPP)
#define XERCESC_INCLUDE_GUARD_XERCESDEFS_HPP
// ---------------------------------------------------------------------------
// The file xerces_hdr_config defines critical configuration information
// used by the remainder of this file.
//
// There are two major configuration files:
// - xerces_autoconf_config.hpp-- Contains defines that are safe for
// access through public headers.
//
// - config.h -- Contains defines that may conflict
// with other packages; should only be
// included by Xerces implementation files.
//
// Both of these files are generated through the autoconf/configure process.
// ---------------------------------------------------------------------------
//
// If this is an autoconf configured build, we include Xerces_autoconf_config.hpp
// Otherwise we include a preconfigured config appropriate for the particular
// platform that the specific makefile should copy over.
//
// If the next line generates an error then you haven't run ./configure
#include <xercesc/util/Xerces_autoconf_config.hpp>
// ---------------------------------------------------------------------------
// Include the Xerces version information; this is kept in a separate file to
// make modification simple and obvious. Updates to the version header file
// ---------------------------------------------------------------------------
#include <xercesc/util/XercesVersion.hpp>
// ---------------------------------------------------------------------------
// Some general typedefs that are defined for internal flexibility.
//
// Note that UTF16Ch is fixed at 16 bits, whereas XMLCh floats in size per
// platform, to whatever is the native wide char format there. UCS4Ch is
// fixed at 32 bits. The types we defined them in terms of are defined per
// compiler, using whatever types are the right ones for them to get these
// 16/32 bit sizes.
//
// ---------------------------------------------------------------------------
typedef unsigned char XMLByte;
typedef XMLUInt16 UTF16Ch;
typedef XMLUInt32 UCS4Ch;
// ---------------------------------------------------------------------------
// Handle boolean. If the platform can handle booleans itself, then we
// map our boolean type to the native type. Otherwise we create a default
// one as an int and define const values for true and false.
//
// This flag will be set in the per-development environment stuff above.
// ---------------------------------------------------------------------------
#if defined(XERCES_NO_NATIVE_BOOL)
#ifndef bool
typedef int bool;
#endif
#ifndef true
#define true 1
#endif
#ifndef false
#define false 0
#endif
#endif
// ---------------------------------------------------------------------------
// According to whether the compiler supports L"" type strings, we define
// the XMLStrL() macro one way or another.
// ---------------------------------------------------------------------------
#if defined(XERCES_LSTRSUPPORT)
#define XMLStrL(str) L##str
#else
#define XMLStrL(str) str
#endif
// ---------------------------------------------------------------------------
// Define namespace symbols if the compiler supports it.
// ---------------------------------------------------------------------------
#if defined(XERCES_HAS_CPP_NAMESPACE)
#define XERCES_CPP_NAMESPACE_BEGIN namespace XERCES_CPP_NAMESPACE {
#define XERCES_CPP_NAMESPACE_END }
#define XERCES_CPP_NAMESPACE_USE using namespace XERCES_CPP_NAMESPACE;
#define XERCES_CPP_NAMESPACE_QUALIFIER XERCES_CPP_NAMESPACE::
namespace XERCES_CPP_NAMESPACE { }
namespace xercesc = XERCES_CPP_NAMESPACE;
#else
#define XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_USE
#define XERCES_CPP_NAMESPACE_QUALIFIER
#endif
#if defined(XERCES_STD_NAMESPACE)
#define XERCES_USING_STD(NAME) using std :: NAME;
#define XERCES_STD_QUALIFIER std ::
#else
#define XERCES_USING_STD(NAME)
#define XERCES_STD_QUALIFIER
#endif
// ---------------------------------------------------------------------------
// Set up the import/export keyword for our core projects. The
// PLATFORM_XXXX keywords are set in the per-development environment
// include above.
// ---------------------------------------------------------------------------
// The DLL_EXPORT flag should be defined on the command line during the build of a DLL
// configure conspires to make this happen.
#if defined(DLL_EXPORT)
#if defined(XERCES_BUILDING_LIBRARY)
#define XMLUTIL_EXPORT XERCES_PLATFORM_EXPORT
#define XMLPARSER_EXPORT XERCES_PLATFORM_EXPORT
#define SAX_EXPORT XERCES_PLATFORM_EXPORT
#define SAX2_EXPORT XERCES_PLATFORM_EXPORT
#define CDOM_EXPORT XERCES_PLATFORM_EXPORT
#define PARSERS_EXPORT XERCES_PLATFORM_EXPORT
#define VALIDATORS_EXPORT XERCES_PLATFORM_EXPORT
#define XINCLUDE_EXPORT XERCES_PLATFORM_EXPORT
#else
#define XMLUTIL_EXPORT XERCES_PLATFORM_IMPORT
#define XMLPARSER_EXPORT XERCES_PLATFORM_IMPORT
#define SAX_EXPORT XERCES_PLATFORM_IMPORT
#define SAX2_EXPORT XERCES_PLATFORM_IMPORT
#define CDOM_EXPORT XERCES_PLATFORM_IMPORT
#define PARSERS_EXPORT XERCES_PLATFORM_IMPORT
#define VALIDATORS_EXPORT XERCES_PLATFORM_IMPORT
#define XINCLUDE_EXPORT XERCES_PLATFORM_IMPORT
#endif
#if defined(XERCES_BUILDING_DEPRECATED_LIBRARY)
#define DEPRECATED_DOM_EXPORT XERCES_PLATFORM_EXPORT
#else
#define DEPRECATED_DOM_EXPORT XERCES_PLATFORM_IMPORT
#endif
#else
#define XMLUTIL_EXPORT
#define XMLPARSER_EXPORT
#define SAX_EXPORT
#define SAX2_EXPORT
#define CDOM_EXPORT
#define DEPRECATED_DOM_EXPORT
#define PARSERS_EXPORT
#define VALIDATORS_EXPORT
#define XINCLUDE_EXPORT
#endif
#endif
|