xmlversion.h
Go to the documentation of this file.
1 /*
2  * Summary: compile-time version informations
3  * Description: compile-time version informations for the XML library
4  *
5  * Copy: See Copyright for the status of this software.
6  *
7  * Author: Daniel Veillard
8  */
9 
10 #ifndef __XML_VERSION_H__
11 #define __XML_VERSION_H__
12 
13 #include <libxml/xmlexports.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /*
20  * use those to be sure nothing nasty will happen if
21  * your library and includes mismatch
22  */
23 #ifndef LIBXML2_COMPILING_MSCCDEF
24 XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
25 #endif /* LIBXML2_COMPILING_MSCCDEF */
26 
32 #define LIBXML_DOTTED_VERSION "2.6.27"
33 
39 #define LIBXML_VERSION 20627
40 
46 #define LIBXML_VERSION_STRING "20627"
47 
53 #define LIBXML_VERSION_EXTRA ""
54 
61 #define LIBXML_TEST_VERSION xmlCheckVersion(20627);
62 
63 #ifndef VMS
64 #if 0
65 
70 #define WITH_TRIO
71 #else
72 
77 #define WITHOUT_TRIO
78 #endif
79 #else /* VMS */
80 
85 #define WITH_TRIO 1
86 #endif /* VMS */
87 
93 #if 1
94 #define LIBXML_THREAD_ENABLED
95 #endif
96 
102 #if 1
103 #define LIBXML_THREAD_ALLOC_ENABLED
104 #endif
105 
111 #if 1
112 #define LIBXML_TREE_ENABLED
113 #endif
114 
120 #if 1
121 #define LIBXML_OUTPUT_ENABLED
122 #endif
123 
129 #if 1
130 #define LIBXML_PUSH_ENABLED
131 #endif
132 
138 #if 1
139 #define LIBXML_READER_ENABLED
140 #endif
141 
147 #if 1
148 #define LIBXML_PATTERN_ENABLED
149 #endif
150 
156 #if 1
157 #define LIBXML_WRITER_ENABLED
158 #endif
159 
165 #if 1
166 #define LIBXML_SAX1_ENABLED
167 #endif
168 
174 #if 0
175 #define LIBXML_FTP_ENABLED
176 #endif
177 
183 #if 0
184 #define LIBXML_HTTP_ENABLED
185 #endif
186 
192 #if 1
193 #define LIBXML_VALID_ENABLED
194 #endif
195 
201 #if 1
202 #define LIBXML_HTML_ENABLED
203 #endif
204 
210 #if 0
211 #define LIBXML_LEGACY_ENABLED
212 #endif
213 
219 #if 1
220 #define LIBXML_C14N_ENABLED
221 #endif
222 
228 #if 1
229 #define LIBXML_CATALOG_ENABLED
230 #endif
231 
237 #if 1
238 #define LIBXML_DOCB_ENABLED
239 #endif
240 
246 #if 1
247 #define LIBXML_XPATH_ENABLED
248 #endif
249 
255 #if 1
256 #define LIBXML_XPTR_ENABLED
257 #endif
258 
264 #if 1
265 #define LIBXML_XINCLUDE_ENABLED
266 #endif
267 
273 #if 0
274 #define LIBXML_ICONV_ENABLED
275 #endif
276 
282 #if 0
283 #define LIBXML_ICU_ENABLED
284 #endif
285 
291 #if 1
292 #define LIBXML_ISO8859X_ENABLED
293 #endif
294 
300 #if 0
301 #define LIBXML_DEBUG_ENABLED
302 #endif
303 
309 #if 0
310 #define DEBUG_MEMORY_LOCATION
311 #endif
312 
318 #if 0
319 #define LIBXML_DEBUG_RUNTIME
320 #endif
321 
327 #if 1
328 #define LIBXML_UNICODE_ENABLED
329 #endif
330 
336 #if 1
337 #define LIBXML_REGEXP_ENABLED
338 #endif
339 
345 #if 1
346 #define LIBXML_AUTOMATA_ENABLED
347 #endif
348 
356 #if 0
357 #define LIBXML_EXPR_ENABLED
358 #endif
359 
365 #if 1
366 #define LIBXML_SCHEMAS_ENABLED
367 #endif
368 
374 #if 1
375 #define LIBXML_SCHEMATRON_ENABLED
376 #endif
377 
383 #if 1
384 #define LIBXML_MODULES_ENABLED
385 
390 #define LIBXML_MODULE_EXTENSION ".so"
391 #endif
392 
398 #if 1
399 #define LIBXML_ZLIB_ENABLED
400 #endif
401 
407 #if 0
408 #define LIBXML_LZMA_ENABLED
409 #endif
410 
411 #ifdef __GNUC__
412 
419 #ifndef ATTRIBUTE_UNUSED
420 # if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
421 # define ATTRIBUTE_UNUSED __attribute__((unused))
422 # else
423 # define ATTRIBUTE_UNUSED
424 # endif
425 #endif
426 
433 #ifndef LIBXML_ATTR_ALLOC_SIZE
434 # if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
435 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
436 # else
437 # define LIBXML_ATTR_ALLOC_SIZE(x)
438 # endif
439 #else
440 # define LIBXML_ATTR_ALLOC_SIZE(x)
441 #endif
442 
449 #ifndef LIBXML_ATTR_FORMAT
450 # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
451 # define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
452 # else
453 # define LIBXML_ATTR_FORMAT(fmt,args)
454 # endif
455 #else
456 # define LIBXML_ATTR_FORMAT(fmt,args)
457 #endif
458 
459 #else /* ! __GNUC__ */
460 
465 #define ATTRIBUTE_UNUSED
466 
471 #define LIBXML_ATTR_ALLOC_SIZE(x)
472 
477 #define LIBXML_ATTR_FORMAT(fmt,args)
478 #endif /* __GNUC__ */
479 
480 #ifdef __cplusplus
481 }
482 #endif /* __cplusplus */
483 #endif
484 
485 
XMLPUBFUN void XMLCALL xmlCheckVersion(int version)