VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.4/libxml.h@ 84932

Last change on this file since 84932 was 74653, checked in by vboxsync, 6 years ago

IPRT: Try shut up xmlFree linker warning.

  • Property svn:eol-style set to native
File size: 2.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: [email protected]
7 */
8
9#ifndef __XML_LIBXML_H__
10#define __XML_LIBXML_H__
11
12#include <libxml/xmlstring.h>
13
14#ifndef NO_LARGEFILE_SOURCE
15#ifndef _LARGEFILE_SOURCE
16#define _LARGEFILE_SOURCE
17#endif
18#ifndef _FILE_OFFSET_BITS
19#define _FILE_OFFSET_BITS 64
20#endif
21#endif
22
23#if defined(macintosh)
24#include "config-mac.h"
25#elif defined(_WIN32)
26#include <win32config.h>
27#include <libxml/xmlversion.h>
28#elif defined(_WIN32_WCE)
29/*
30 * Windows CE compatibility definitions and functions
31 * This is needed to compile libxml2 for Windows CE.
32 * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
33 */
34#include <win32config.h>
35#include <libxml/xmlversion.h>
36#elif defined(VBOX)
37#include <vboxconfig.h>
38#include <libxml/xmlversion.h>
39#else
40/*
41 * Currently supported platforms use either autoconf or
42 * copy to config.h own "preset" configuration file.
43 * As result ifdef HAVE_CONFIG_H is omited here.
44 */
45#include "config.h"
46#include <libxml/xmlversion.h>
47#endif
48
49#if defined(__Lynx__)
50#include <stdio.h> /* pull definition of size_t */
51#include <varargs.h>
52int snprintf(char *, size_t, const char *, ...);
53int vfprintf(FILE *, const char *, va_list);
54#endif
55
56#ifndef WITH_TRIO
57#include <stdio.h>
58#else
59/**
60 * TRIO_REPLACE_STDIO:
61 *
62 * This macro is defined if teh trio string formatting functions are to
63 * be used instead of the default stdio ones.
64 */
65#define TRIO_REPLACE_STDIO
66#include "trio.h"
67#endif
68
69/*
70 * Internal variable indicating if a callback has been registered for
71 * node creation/destruction. It avoids spending a lot of time in locking
72 * function while checking if the callback exists.
73 */
74extern int __xmlRegisterCallbacks;
75/*
76 * internal error reporting routines, shared but not partof the API.
77 */
78void __xmlIOErr(int domain, int code, const char *extra);
79void __xmlLoaderErr(void *ctx, const char *msg, const char *filename) LIBXML_ATTR_FORMAT(2,0);
80#ifdef LIBXML_HTML_ENABLED
81/*
82 * internal function of HTML parser needed for xmlParseInNodeContext
83 * but not part of the API
84 */
85void __htmlParseContent(void *ctx);
86#endif
87
88/*
89 * internal global initialization critical section routines.
90 */
91void __xmlGlobalInitMutexLock(void);
92void __xmlGlobalInitMutexUnlock(void);
93void __xmlGlobalInitMutexDestroy(void);
94
95int __xmlInitializeDict(void);
96
97#if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME)
98/*
99 * internal thread safe random function
100 */
101int __xmlRandom(void);
102#endif
103
104XMLPUBFUN xmlChar * XMLCALL xmlEscapeFormatString(xmlChar **msg);
105int xmlNop(void);
106
107#ifdef IN_LIBXML
108#ifdef __GNUC__
109#ifdef PIC
110#ifdef linux
111#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
112#include "elfgcchack.h"
113#endif
114#endif
115#endif
116#endif
117#endif
118#if !defined(PIC) && !defined(NOLIBTOOL) /* VBox: */ && !defined(LIBXML_STATIC)
119# define LIBXML_STATIC
120#endif
121#endif /* ! __XML_LIBXML_H__ */
Note: See TracBrowser for help on using the repository browser.

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