updated libxml2 to 2.5.10
[TestXSLT.git] / libxml2 / include / libxml / xmlversion.h.in
1 /*
2  * xmlversion.h : compile-time version informations for the XML parser.
3  *
4  * See Copyright for the status of this software.
5  *
6  * daniel@veillard.com
7  */
8
9 #ifndef __XML_VERSION_H__
10 #define __XML_VERSION_H__
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 /*
17  * use those to be sure nothing nasty will happen if
18  * your library and includes mismatch
19  */
20 #ifndef LIBXML2_COMPILING_MSCCDEF
21 extern void xmlCheckVersion(int version);
22 #endif /* LIBXML2_COMPILING_MSCCDEF */
23
24 /**
25  * LIBXML_DOTTED_VERSION:
26  *
27  * the version string like "1.2.3"
28  */
29 #define LIBXML_DOTTED_VERSION "@VERSION@"
30
31 /**
32  * LIBXML_VERSION:
33  *
34  * the version number: 1.2.3 value is 1002003
35  */
36 #define LIBXML_VERSION @LIBXML_VERSION_NUMBER@
37
38 /**
39  * LIBXML_VERSION_STRING:
40  *
41  * the version number string, 1.2.3 value is "1002003"
42  */
43 #define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
44
45 /**
46  * LIBXML_TEST_VERSION:
47  *
48  * Macro to check that the libxml version in use is compatible with
49  * the version the software has been compiled against
50  */
51 #define LIBXML_TEST_VERSION xmlCheckVersion(@LIBXML_VERSION_NUMBER@);
52
53 #ifndef VMS
54 #if @WITH_TRIO@
55 /**
56  * WITH_TRIO:
57  *
58  * defined if the trio support need to be configured in
59  */
60 #define WITH_TRIO
61 #else
62 /**
63  * WITHOUT_TRIO:
64  *
65  * defined if the trio support should not be configured in
66  */
67 #define WITHOUT_TRIO
68 #endif
69 #else /* VMS */
70 #define WITH_TRIO 1
71 #endif /* VMS */
72
73 /**
74  * LIBXML_THREAD_ENABLED:
75  *
76  * Whether the thread support is configured in
77  */
78 #if @WITH_THREADS@
79 #if defined(_REENTRANT) || defined(__MT__) || (_POSIX_C_SOURCE - 0 >= 199506L)
80 #define LIBXML_THREAD_ENABLED
81 #endif
82 #endif
83
84 /**
85  * LIBXML_FTP_ENABLED:
86  *
87  * Whether the FTP support is configured in
88  */
89 #if @WITH_FTP@
90 #define LIBXML_FTP_ENABLED
91 #endif
92
93 /**
94  * LIBXML_HTTP_ENABLED:
95  *
96  * Whether the HTTP support is configured in
97  */
98 #if @WITH_HTTP@
99 #define LIBXML_HTTP_ENABLED
100 #endif
101
102 /**
103  * LIBXML_HTML_ENABLED:
104  *
105  * Whether the HTML support is configured in
106  */
107 #if @WITH_HTML@
108 #define LIBXML_HTML_ENABLED
109 #endif
110
111 /**
112  * LIBXML_C14N_ENABLED:
113  *
114  * Whether the Canonicalization support is configured in
115  */
116 #if @WITH_C14N@
117 #define LIBXML_C14N_ENABLED
118 #endif
119
120 /**
121  * LIBXML_CATALOG_ENABLED:
122  *
123  * Whether the Catalog support is configured in
124  */
125 #if @WITH_CATALOG@
126 #define LIBXML_CATALOG_ENABLED
127 #endif
128
129 /**
130  * LIBXML_DOCB_ENABLED:
131  *
132  * Whether the SGML Docbook support is configured in
133  */
134 #if @WITH_DOCB@
135 #define LIBXML_DOCB_ENABLED
136 #endif
137
138 /**
139  * LIBXML_XPATH_ENABLED:
140  *
141  * Whether XPath is configured in
142  */
143 #if @WITH_XPATH@
144 #define LIBXML_XPATH_ENABLED
145 #endif
146
147 /**
148  * LIBXML_XPTR_ENABLED:
149  *
150  * Whether XPointer is configured in
151  */
152 #if @WITH_XPTR@
153 #define LIBXML_XPTR_ENABLED
154 #endif
155
156 /**
157  * LIBXML_XINCLUDE_ENABLED:
158  *
159  * Whether XInclude is configured in
160  */
161 #if @WITH_XINCLUDE@
162 #define LIBXML_XINCLUDE_ENABLED
163 #endif
164
165 /**
166  * LIBXML_ICONV_ENABLED:
167  *
168  * Whether iconv support is available
169  */
170 #if @WITH_ICONV@
171 #define LIBXML_ICONV_ENABLED
172 #endif
173
174 /**
175  * LIBXML_ISO8859X_ENABLED:
176  *
177  * Whether ISO-8859-* support is made available in case iconv is not
178  */
179 #if @WITH_ISO8859X@
180 #define LIBXML_ISO8859X_ENABLED
181 #endif
182
183 /**
184  * LIBXML_DEBUG_ENABLED:
185  *
186  * Whether Debugging module is configured in
187  */
188 #if @WITH_DEBUG@
189 #define LIBXML_DEBUG_ENABLED
190 #endif
191
192 /**
193  * DEBUG_MEMORY_LOCATION:
194  *
195  * Whether the memory debugging is configured in
196  */
197 #if @WITH_MEM_DEBUG@
198 #define DEBUG_MEMORY_LOCATION
199 #endif
200
201 /**
202  * LIBXML_UNICODE_ENABLED
203  *
204  * Whether the Unicode related interfaces are compiled in
205  */
206 #if @WITH_REGEXPS@
207 #define LIBXML_UNICODE_ENABLED
208 #endif
209
210 /**
211  * LIBXML_REGEXP_ENABLED
212  *
213  * Whether the regular expressions interfaces are compiled in
214  */
215 #if @WITH_REGEXPS@
216 #define LIBXML_REGEXP_ENABLED
217 #endif
218
219 /**
220  * LIBXML_AUTOMATA_ENABLED
221  *
222  * Whether the automata interfaces are compiled in
223  */
224 #if @WITH_REGEXPS@
225 #define LIBXML_AUTOMATA_ENABLED
226 #endif
227
228 /**
229  * LIBXML_SCHEMAS_ENABLED
230  *
231  * Whether the Schemas validation interfaces are compiled in
232  */
233 #if @WITH_SCHEMAS@
234 #define LIBXML_SCHEMAS_ENABLED
235 #endif
236
237 /**
238  * LIBXML_DLL_IMPORT:
239  *
240  * Used on Windows (MS C compiler only) to declare a variable as 
241  * imported from the library. This macro should be empty when compiling
242  * libxml itself. It should expand to __declspec(dllimport)
243  * when the client code includes this header, and that only if the client
244  * links dynamically against libxml.
245  * For this to work, we need three macros. One tells us which compiler is
246  * being used and luckily the compiler defines such a thing: _MSC_VER. The
247  * second macro tells us if we are compiling libxml or the client code and
248  * we define the macro IN_LIBXML on the compiler's command line for this 
249  * purpose. The third macro, LIBXML_STATIC, must be defined by any client 
250  * code which links against libxml statically. 
251  */
252 #ifndef LIBXML_DLL_IMPORT
253 #if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
254 #define LIBXML_DLL_IMPORT __declspec(dllimport)
255 #else
256 #define LIBXML_DLL_IMPORT
257 #endif
258 #endif
259
260 /**
261  * ATTRIBUTE_UNUSED:
262  *
263  * Macro used to signal to GCC unused function parameters
264  */
265 #ifdef __GNUC__
266 #ifdef HAVE_ANSIDECL_H
267 #include <ansidecl.h>
268 #endif
269 #ifndef ATTRIBUTE_UNUSED
270 #define ATTRIBUTE_UNUSED
271 #endif
272 #else
273 #define ATTRIBUTE_UNUSED
274 #endif
275
276 #ifdef __cplusplus
277 }
278 #endif /* __cplusplus */
279 #endif
280
281