OLD | NEW |
1 /* | 1 /* |
2 * libxml.h: internal header only used during the compilation of libxml | 2 * libxml.h: internal header only used during the compilation of libxml |
3 * | 3 * |
4 * See COPYRIGHT for the status of this software | 4 * See COPYRIGHT for the status of this software |
5 * | 5 * |
6 * Author: breese@users.sourceforge.net | 6 * Author: breese@users.sourceforge.net |
7 */ | 7 */ |
8 | 8 |
9 #ifndef __XML_LIBXML_H__ | 9 #ifndef __XML_LIBXML_H__ |
10 #define __XML_LIBXML_H__ | 10 #define __XML_LIBXML_H__ |
11 | 11 |
12 #ifndef NO_LARGEFILE_SOURCE | 12 #ifndef NO_LARGEFILE_SOURCE |
13 #ifndef _LARGEFILE_SOURCE | 13 #ifndef _LARGEFILE_SOURCE |
14 #define _LARGEFILE_SOURCE | 14 #define _LARGEFILE_SOURCE |
15 #endif | 15 #endif |
16 #ifndef _FILE_OFFSET_BITS | 16 #ifndef _FILE_OFFSET_BITS |
17 #define _FILE_OFFSET_BITS 64 | 17 #define _FILE_OFFSET_BITS 64 |
18 #endif | 18 #endif |
19 #endif | 19 #endif |
20 #ifndef _CRT_NO_POSIX_ERROR_CODES | |
21 #define _CRT_NO_POSIX_ERROR_CODES | |
22 #endif | |
23 | 20 |
24 #if defined(macintosh) | 21 #if defined(macintosh) |
25 #include "config-mac.h" | 22 #include "config-mac.h" |
26 #elif defined(_WIN32_WCE) | 23 #elif defined(_WIN32_WCE) |
27 /* | 24 /* |
28 * Windows CE compatibility definitions and functions | 25 * Windows CE compatibility definitions and functions |
29 * This is needed to compile libxml2 for Windows CE. | 26 * 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 | 27 * At least I tested it with WinCE 5.0 for Emulator and WinCE 4.2/SH4 target |
31 */ | 28 */ |
32 #include <win32config.h> | 29 #include <win32config.h> |
33 #include <libxml/xmlversion.h> | 30 #include <libxml/xmlversion.h> |
34 #else | 31 #else |
| 32 /* |
| 33 * Currently supported platforms use either autoconf or |
| 34 * copy to config.h own "preset" configuration file. |
| 35 * As result ifdef HAVE_CONFIG_H is omited here. |
| 36 */ |
35 #include "config.h" | 37 #include "config.h" |
36 #include <libxml/xmlversion.h> | 38 #include <libxml/xmlversion.h> |
37 #endif | 39 #endif |
38 | 40 |
39 #if defined(__Lynx__) | 41 #if defined(__Lynx__) |
40 #include <stdio.h> /* pull definition of size_t */ | 42 #include <stdio.h> /* pull definition of size_t */ |
41 #include <varargs.h> | 43 #include <varargs.h> |
42 int snprintf(char *, size_t, const char *, ...); | 44 int snprintf(char *, size_t, const char *, ...); |
43 int vfprintf(FILE *, const char *, va_list); | 45 int vfprintf(FILE *, const char *, va_list); |
44 #endif | 46 #endif |
(...skipping 30 matching lines...) Expand all Loading... |
75 void __htmlParseContent(void *ctx); | 77 void __htmlParseContent(void *ctx); |
76 #endif | 78 #endif |
77 | 79 |
78 /* | 80 /* |
79 * internal global initialization critical section routines. | 81 * internal global initialization critical section routines. |
80 */ | 82 */ |
81 void __xmlGlobalInitMutexLock(void); | 83 void __xmlGlobalInitMutexLock(void); |
82 void __xmlGlobalInitMutexUnlock(void); | 84 void __xmlGlobalInitMutexUnlock(void); |
83 void __xmlGlobalInitMutexDestroy(void); | 85 void __xmlGlobalInitMutexDestroy(void); |
84 | 86 |
| 87 int __xmlInitializeDict(void); |
| 88 |
| 89 #if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME) |
| 90 /* |
| 91 * internal thread safe random function |
| 92 */ |
| 93 int __xmlRandom(void); |
| 94 #endif |
| 95 |
| 96 int xmlNop(void); |
| 97 |
85 #ifdef IN_LIBXML | 98 #ifdef IN_LIBXML |
86 #ifdef __GNUC__ | 99 #ifdef __GNUC__ |
87 #ifdef PIC | 100 #ifdef PIC |
88 #ifdef linux | 101 #ifdef linux |
89 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) | 102 #if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3) |
90 #include "elfgcchack.h" | 103 #include "elfgcchack.h" |
91 #endif | 104 #endif |
92 #endif | 105 #endif |
93 #endif | 106 #endif |
94 #endif | 107 #endif |
95 #endif | 108 #endif |
96 #ifndef PIC | 109 #if !defined(PIC) && !defined(NOLIBTOOL) |
97 # define LIBXML_STATIC | 110 # define LIBXML_STATIC |
98 #endif | 111 #endif |
99 #endif /* ! __XML_LIBXML_H__ */ | 112 #endif /* ! __XML_LIBXML_H__ */ |
OLD | NEW |