openbsd-ports/textproc/xerces-c/files/OpenBSDDefs.hpp
ajacoutot ec4f145d94 Import xerces-c-2.8.0
Xerces-C++ is a validating XML parser written in a portable subset of
C++.  Xerces-C++ makes it easy to give your application the ability to
read and write XML data.  A shared library is provided for parsing,
generating, manipulating, and validating XML documents using the DOM,
SAX, and SAX2 APIs.  For an introduction to programming with Xerces-C++
refer to the Programming Guide.
<...>

ok landry@
2008-10-26 23:15:15 +00:00

45 lines
1.3 KiB
C++

/*
* 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.
*/
/*
*
*
*/
// ---------------------------------------------------------------------------
// Detect endian mode
// ---------------------------------------------------------------------------
#include <sys/endian.h>
#ifdef __BYTE_ORDER
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define ENDIANMODE_LITTLE
#else
#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIANMODE_BIG
#else
#error: unknown byte order!
#endif
#endif
#endif /* __BYTE_ORDER */
typedef void* FileHandle;
#ifndef OPENBSD
#define OPENBSD
#endif