VirtualBox

source: vbox/trunk/src/libs/libxml2-2.12.6/libxml.h

Last change on this file was 104180, checked in by vboxsync, 6 weeks ago

libxml2-2.12.6: Make it build for windows. bugref:10640

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/*
2 * libxml.h: internal header only used during the compilation of libxml
3 *
4 * See COPYRIGHT for the status of this software
5 *
6 * Author: breese@users.sourceforge.net
7 */
8
9#ifndef __XML_LIBXML_H__
10#define __XML_LIBXML_H__
11
12/*
13 * These macros must be defined before including system headers.
14 * Do not add any #include directives above this block.
15 */
16#ifndef NO_LARGEFILE_SOURCE
17 #ifndef _LARGEFILE_SOURCE
18 #define _LARGEFILE_SOURCE
19 #endif
20 #ifndef _FILE_OFFSET_BITS
21 #define _FILE_OFFSET_BITS 64
22 #endif
23#endif
24
25#if defined(VBOX)
26#include <vboxconfig.h>
27#include <libxml/xmlversion.h>
28#endif
29
30
31#if defined(macintosh)
32#include "config-mac.h"
33#elif defined(_WIN32)
34#include <win32config.h>
35#include <libxml/xmlversion.h>
36#elif defined(_WIN32_WCE)
37/*
38 * These files are generated by the build system and contain private
39 * and public build configuration.
40 */
41#include "config.h"
42#include <libxml/xmlversion.h>
43#else
44/*
45 * Due to some Autotools limitations, this variable must be passed as
46 * compiler flag. Define a default value if the macro wasn't set by the
47 * build system.
48 */
49#ifndef SYSCONFDIR
50 #define SYSCONFDIR "/etc"
51#endif
52
53#ifdef WITH_TRIO
54 #define TRIO_REPLACE_STDIO
55 #include "trio.h"
56#endif
57
58#if !defined(_WIN32) && \
59 !defined(__CYGWIN__) && \
60 (defined(__clang__) || \
61 (defined(__GNUC__) && (__GNUC__ >= 4)))
62 #define XML_HIDDEN __attribute__((visibility("hidden")))
63#else
64 #define XML_HIDDEN
65#endif
66
67#if defined(__clang__) || \
68 (defined(__GNUC__) && (__GNUC__ >= 8))
69 #define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
70#else
71 #define ATTRIBUTE_NO_SANITIZE(arg)
72#endif
73
74#ifdef __clang__
75 #define ATTRIBUTE_NO_SANITIZE_INTEGER \
76 ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") \
77 ATTRIBUTE_NO_SANITIZE("unsigned-shift-base")
78#else
79 #define ATTRIBUTE_NO_SANITIZE_INTEGER
80#endif
81
82#endif /* #if defined(macintosh) */
83#endif /* ! __XML_LIBXML_H__ */
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use