Newer
Older
James David Berry
committed
/*
* 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
James David Berry
committed
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
*
* 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$
*/
//
// There are two primary xerces configuration header files:
//
// Xerces_autoconf_config.hpp -- For configuration of items that must be accessable
// through public headers. This file has limited information
// and carefully works to avoid collision of macro names, etc.
//
// This file is included by XercesDefs.h. In the event
// of a non-configured platform, a similar header specific
// to the platform will be included instead.
//
// config.h -- Generalized autoconf header file, with much more
// information, used to supply configuration information
// for use in implementation files.
//
// For autoconf based builds, this header is configured from by the configure
// script from the .in template file of the same name.
#ifndef XERCES_AUTOCONFIG_CONFIG_HPP
#define XERCES_AUTOCONFIG_CONFIG_HPP
// ---------------------------------------------------------------------------
// These defines are set by configure as appropriate for the platform.
// ---------------------------------------------------------------------------
#undef XERCES_AUTOCONF
#undef XERCES_HAVE_SYS_TYPES_H
#undef XERCES_HAVE_INTTYPES_H
Alberto Massari
committed
#undef XERCES_INCLUDE_WCHAR_H
James David Berry
committed
#undef XERCES_S16BIT_INT
#undef XERCES_S32BIT_INT
#undef XERCES_U16BIT_INT
#undef XERCES_U32BIT_INT
James David Berry
committed
#undef XERCES_XMLCH_T
#undef XERCES_SIZE_T
#undef XERCES_SSIZE_T
#undef XERCES_HAS_CPP_NAMESPACE
#undef XERCES_STD_NAMESPACE
#undef XERCES_NEW_IOSTREAMS
#undef XERCES_NO_NATIVE_BOOL
#undef XERCES_LSTRSUPPORT
#undef XERCES_PLATFORM_EXPORT
#undef XERCES_PLATFORM_IMPORT
// ---------------------------------------------------------------------------
// Include standard headers, if available, that we may rely on below.
// ---------------------------------------------------------------------------
#if XERCES_HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if XERCES_HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
Alberto Massari
committed
#if XERCES_INCLUDE_WCHAR_H
# include <wchar.h>
#endif
James David Berry
committed
// ---------------------------------------------------------------------------
// XMLSize_t is the unsigned integral type.
// ---------------------------------------------------------------------------
typedef XERCES_SIZE_T XMLSize_t;
typedef XERCES_SSIZE_T XMLSSize_t;
// ---------------------------------------------------------------------------
// Define our version of the XML character
// ---------------------------------------------------------------------------
typedef XERCES_XMLCH_T XMLCh;
// ---------------------------------------------------------------------------
// Define unsigned 16 and 32 bit integers
// ---------------------------------------------------------------------------
typedef XERCES_U16BIT_INT XMLUInt16;
typedef XERCES_U32BIT_INT XMLUInt32;
// ---------------------------------------------------------------------------
// Define signed 32 bit integers
// ---------------------------------------------------------------------------
typedef XERCES_S32BIT_INT XMLInt32;
// ---------------------------------------------------------------------------
// XMLFilePos is the type used to represent a file position.
// ---------------------------------------------------------------------------
James David Berry
committed
// ---------------------------------------------------------------------------
// Force on the Xerces debug token if it is on in the build environment
// ---------------------------------------------------------------------------
#if defined(_DEBUG)
#define XERCES_DEBUG
#endif
#endif