2 * libxml.h: internal header only used during the compilation of libxml
4 * See COPYRIGHT for the status of this software
6 * Author: breese@users.sourceforge.net
9 #ifndef __XML_LIBXML_H__
10 #define __XML_LIBXML_H__
12 #ifndef NO_LARGEFILE_SOURCE
13 #ifndef _LARGEFILE_SOURCE
14 #define _LARGEFILE_SOURCE
16 #ifndef _FILE_OFFSET_BITS
17 #define _FILE_OFFSET_BITS 64
20 #ifndef _CRT_NO_POSIX_ERROR_CODES
21 #define _CRT_NO_POSIX_ERROR_CODES
24 #if defined(macintosh)
25 #include "config-mac.h"
26 #elif defined(_WIN32_WCE)
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
32 #include <win32config.h>
33 #include <libxml/xmlversion.h>
36 #include <libxml/xmlversion.h>
40 #include <stdio.h> /* pull definition of size_t */
42 int snprintf(char *, size_t, const char *, ...);
43 int vfprintf(FILE *, const char *, va_list);
52 * This macro is defined if teh trio string formatting functions are to
53 * be used instead of the default stdio ones.
55 #define TRIO_REPLACE_STDIO
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.
64 extern int __xmlRegisterCallbacks
;
66 * internal error reporting routines, shared but not partof the API.
68 void __xmlIOErr(int domain
, int code
, const char *extra
);
69 void __xmlLoaderErr(void *ctx
, const char *msg
, const char *filename
);
70 #ifdef LIBXML_HTML_ENABLED
72 * internal function of HTML parser needed for xmlParseInNodeContext
73 * but not part of the API
75 void __htmlParseContent(void *ctx
);
79 * internal global initialization critical section routines.
81 void __xmlGlobalInitMutexLock(void);
82 void __xmlGlobalInitMutexUnlock(void);
83 void __xmlGlobalInitMutexDestroy(void);
89 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
90 #include "elfgcchack.h"
97 # define LIBXML_STATIC
99 #endif /* ! __XML_LIBXML_H__ */