VirtualBox

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

最後變更 在這個檔案從104169是 104169,由 vboxsync 提交於 10 月 前

libxml2-2.9.14: Some .h fixes. bugref:10640

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.9 KB
 
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: [email protected]
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(macintosh)
26#include "config-mac.h"
27#elif defined(_WIN32)
28#include <win32config.h>
29#include <libxml/xmlversion.h>
30#elif defined(_WIN32_WCE)
31/*
32 * These files are generated by the build system and contain private
33 * and public build configuration.
34 */
35#include "config.h"
36#include <libxml/xmlversion.h>
37#elif defined(VBOX)
38#include <vboxconfig.h>
39#include <libxml/xmlversion.h>
40#else
41/*
42 * Due to some Autotools limitations, this variable must be passed as
43 * compiler flag. Define a default value if the macro wasn't set by the
44 * build system.
45 */
46#ifndef SYSCONFDIR
47 #define SYSCONFDIR "/etc"
48#endif
49
50#ifdef WITH_TRIO
51 #define TRIO_REPLACE_STDIO
52 #include "trio.h"
53#endif
54
55#if !defined(_WIN32) && \
56 !defined(__CYGWIN__) && \
57 (defined(__clang__) || \
58 (defined(__GNUC__) && (__GNUC__ >= 4)))
59 #define XML_HIDDEN __attribute__((visibility("hidden")))
60#else
61 #define XML_HIDDEN
62#endif
63
64#if defined(__clang__) || \
65 (defined(__GNUC__) && (__GNUC__ >= 8))
66 #define ATTRIBUTE_NO_SANITIZE(arg) __attribute__((no_sanitize(arg)))
67#else
68 #define ATTRIBUTE_NO_SANITIZE(arg)
69#endif
70
71#ifdef __clang__
72 #define ATTRIBUTE_NO_SANITIZE_INTEGER \
73 ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") \
74 ATTRIBUTE_NO_SANITIZE("unsigned-shift-base")
75#else
76 #define ATTRIBUTE_NO_SANITIZE_INTEGER
77#endif
78
79#endif /* #if defined(macintosh) */
80#endif /* ! __XML_LIBXML_H__ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette