VirtualBox

source: vbox/trunk/src/libs/libxml2-2.6.30/libxml.h@ 35333

Last change on this file since 35333 was 6089, checked in by vboxsync, 17 years ago

Cooked up a vboxconfig.h to try make the unix boxes go green.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.3 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#ifndef NO_LARGEFILE_SOURCE
13#ifndef _LARGEFILE_SOURCE
14#define _LARGEFILE_SOURCE
15#endif
16#ifndef _FILE_OFFSET_BITS
17#define _FILE_OFFSET_BITS 64
18#endif
19#endif
20
21#if defined(macintosh)
22#include "config-mac.h"
23#elif defined(_WIN32)
24#include <win32config.h>
25#include <libxml/xmlversion.h>
26#elif defined(_WIN32_WCE)
27/*
28 * Windows CE compatibility definitions and functions
29 * This is needed to compile libxml2 for Windows CE.
30 * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target
31 */
32#include <win32config.h>
33#include <libxml/xmlversion.h>
34#elif defined(VBOX)
35#include <vboxconfig.h>
36#include <libxml/xmlversion.h>
37#else
38#include "config.h"
39#include <libxml/xmlversion.h>
40#endif
41
42#if defined(__Lynx__)
43#include <stdio.h> /* pull definition of size_t */
44#include <varargs.h>
45int snprintf(char *, size_t, const char *, ...);
46int vfprintf(FILE *, const char *, va_list);
47#endif
48
49#ifndef WITH_TRIO
50#include <stdio.h>
51#else
52/**
53 * TRIO_REPLACE_STDIO:
54 *
55 * This macro is defined if teh trio string formatting functions are to
56 * be used instead of the default stdio ones.
57 */
58#define TRIO_REPLACE_STDIO
59#include "trio.h"
60#endif
61
62/*
63 * Internal variable indicating if a callback has been registered for
64 * node creation/destruction. It avoids spending a lot of time in locking
65 * function while checking if the callback exists.
66 */
67extern int __xmlRegisterCallbacks;
68/*
69 * internal error reporting routines, shared but not partof the API.
70 */
71void __xmlIOErr(int domain, int code, const char *extra);
72void __xmlLoaderErr(void *ctx, const char *msg, const char *filename);
73#ifdef LIBXML_HTML_ENABLED
74/*
75 * internal function of HTML parser needed for xmlParseInNodeContext
76 * but not part of the API
77 */
78void __htmlParseContent(void *ctx);
79#endif
80
81/*
82 * internal global initialization critical section routines.
83 */
84void __xmlGlobalInitMutexLock(void);
85void __xmlGlobalInitMutexUnlock(void);
86
87#ifdef IN_LIBXML
88#ifdef __GNUC__
89#ifdef PIC
90#ifdef linux
91#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
92#include "elfgcchack.h"
93#endif
94#endif
95#endif
96#endif
97#endif
98#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