VirtualBox

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

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

Merged dmik/s2 branch (r25959:26751) to the trunk.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.2 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#else
35#include "config.h"
36#include <libxml/xmlversion.h>
37#endif
38
39#if defined(__Lynx__)
40#include <stdio.h> /* pull definition of size_t */
41#include <varargs.h>
42int snprintf(char *, size_t, const char *, ...);
43int vfprintf(FILE *, const char *, va_list);
44#endif
45
46#ifndef WITH_TRIO
47#include <stdio.h>
48#else
49/**
50 * TRIO_REPLACE_STDIO:
51 *
52 * This macro is defined if teh trio string formatting functions are to
53 * be used instead of the default stdio ones.
54 */
55#define TRIO_REPLACE_STDIO
56#include "trio.h"
57#endif
58
59/*
60 * Internal variable indicating if a callback has been registered for
61 * node creation/destruction. It avoids spending a lot of time in locking
62 * function while checking if the callback exists.
63 */
64extern int __xmlRegisterCallbacks;
65/*
66 * internal error reporting routines, shared but not partof the API.
67 */
68void __xmlIOErr(int domain, int code, const char *extra);
69void __xmlLoaderErr(void *ctx, const char *msg, const char *filename);
70#ifdef LIBXML_HTML_ENABLED
71/*
72 * internal function of HTML parser needed for xmlParseInNodeContext
73 * but not part of the API
74 */
75void __htmlParseContent(void *ctx);
76#endif
77
78/*
79 * internal global initialization critical section routines.
80 */
81void __xmlGlobalInitMutexLock(void);
82void __xmlGlobalInitMutexUnlock(void);
83
84#ifdef IN_LIBXML
85#ifdef __GNUC__
86#ifdef PIC
87#ifdef linux
88#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
89#include "elfgcchack.h"
90#endif
91#endif
92#endif
93#endif
94#endif
95#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