2 * Summary: compile-time version informations
\r
3 * Description: compile-time version informations for the XML library
\r
5 * Copy: See Copyright for the status of this software.
\r
7 * Author: Daniel Veillard
\r
10 #ifndef __XML_VERSION_H__
\r
11 #define __XML_VERSION_H__
\r
13 #include <libxml/xmlexports.h>
\r
20 * use those to be sure nothing nasty will happen if
\r
21 * your library and includes mismatch
\r
23 #ifndef LIBXML2_COMPILING_MSCCDEF
\r
24 XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
\r
25 #endif /* LIBXML2_COMPILING_MSCCDEF */
\r
28 * LIBXML_DOTTED_VERSION:
\r
30 * the version string like "1.2.3"
\r
32 #define LIBXML_DOTTED_VERSION "2.9.1"
\r
37 * the version number: 1.2.3 value is 10203
\r
39 #define LIBXML_VERSION 20901
\r
42 * LIBXML_VERSION_STRING:
\r
44 * the version number string, 1.2.3 value is "10203"
\r
46 #define LIBXML_VERSION_STRING "20901"
\r
49 * LIBXML_VERSION_EXTRA:
\r
51 * extra version information, used to show a CVS compilation
\r
53 #define LIBXML_VERSION_EXTRA ""
\r
56 * LIBXML_TEST_VERSION:
\r
58 * Macro to check that the libxml version in use is compatible with
\r
59 * the version the software has been compiled against
\r
61 #define LIBXML_TEST_VERSION xmlCheckVersion(20901);
\r
68 * defined if the trio support need to be configured in
\r
75 * defined if the trio support should not be configured in
\r
77 #define WITHOUT_TRIO
\r
83 * defined if the trio support need to be configured in
\r
89 * LIBXML_THREAD_ENABLED:
\r
91 * Whether the thread support is configured in
\r
94 #if defined(_REENTRANT) || defined(__MT__) || \
\r
95 (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L))
\r
96 #define LIBXML_THREAD_ENABLED
\r
101 * LIBXML_THREAD_ALLOC_ENABLED:
\r
103 * Whether the allocation hooks are per-thread
\r
106 #define LIBXML_THREAD_ALLOC_ENABLED
\r
110 * LIBXML_TREE_ENABLED:
\r
112 * Whether the DOM like tree manipulation API support is configured in
\r
115 #define LIBXML_TREE_ENABLED
\r
119 * LIBXML_OUTPUT_ENABLED:
\r
121 * Whether the serialization/saving support is configured in
\r
124 #define LIBXML_OUTPUT_ENABLED
\r
128 * LIBXML_PUSH_ENABLED:
\r
130 * Whether the push parsing interfaces are configured in
\r
133 #define LIBXML_PUSH_ENABLED
\r
137 * LIBXML_READER_ENABLED:
\r
139 * Whether the xmlReader parsing interface is configured in
\r
142 #define LIBXML_READER_ENABLED
\r
146 * LIBXML_PATTERN_ENABLED:
\r
148 * Whether the xmlPattern node selection interface is configured in
\r
151 #define LIBXML_PATTERN_ENABLED
\r
155 * LIBXML_WRITER_ENABLED:
\r
157 * Whether the xmlWriter saving interface is configured in
\r
160 #define LIBXML_WRITER_ENABLED
\r
164 * LIBXML_SAX1_ENABLED:
\r
166 * Whether the older SAX1 interface is configured in
\r
169 #define LIBXML_SAX1_ENABLED
\r
173 * LIBXML_FTP_ENABLED:
\r
175 * Whether the FTP support is configured in
\r
178 #define LIBXML_FTP_ENABLED
\r
182 * LIBXML_HTTP_ENABLED:
\r
184 * Whether the HTTP support is configured in
\r
187 #define LIBXML_HTTP_ENABLED
\r
191 * LIBXML_VALID_ENABLED:
\r
193 * Whether the DTD validation support is configured in
\r
196 #define LIBXML_VALID_ENABLED
\r
200 * LIBXML_HTML_ENABLED:
\r
202 * Whether the HTML support is configured in
\r
205 #define LIBXML_HTML_ENABLED
\r
209 * LIBXML_LEGACY_ENABLED:
\r
211 * Whether the deprecated APIs are compiled in for compatibility
\r
214 #define LIBXML_LEGACY_ENABLED
\r
218 * LIBXML_C14N_ENABLED:
\r
220 * Whether the Canonicalization support is configured in
\r
223 #define LIBXML_C14N_ENABLED
\r
227 * LIBXML_CATALOG_ENABLED:
\r
229 * Whether the Catalog support is configured in
\r
232 #define LIBXML_CATALOG_ENABLED
\r
236 * LIBXML_DOCB_ENABLED:
\r
238 * Whether the SGML Docbook support is configured in
\r
241 #define LIBXML_DOCB_ENABLED
\r
245 * LIBXML_XPATH_ENABLED:
\r
247 * Whether XPath is configured in
\r
250 #define LIBXML_XPATH_ENABLED
\r
254 * LIBXML_XPTR_ENABLED:
\r
256 * Whether XPointer is configured in
\r
259 #define LIBXML_XPTR_ENABLED
\r
263 * LIBXML_XINCLUDE_ENABLED:
\r
265 * Whether XInclude is configured in
\r
268 #define LIBXML_XINCLUDE_ENABLED
\r
272 * LIBXML_ICONV_ENABLED:
\r
274 * Whether iconv support is available
\r
277 #define LIBXML_ICONV_ENABLED
\r
281 * LIBXML_ICU_ENABLED:
\r
283 * Whether icu support is available
\r
286 #define LIBXML_ICU_ENABLED
\r
290 * LIBXML_ISO8859X_ENABLED:
\r
292 * Whether ISO-8859-* support is made available in case iconv is not
\r
295 #define LIBXML_ISO8859X_ENABLED
\r
299 * LIBXML_DEBUG_ENABLED:
\r
301 * Whether Debugging module is configured in
\r
304 #define LIBXML_DEBUG_ENABLED
\r
308 * DEBUG_MEMORY_LOCATION:
\r
310 * Whether the memory debugging is configured in
\r
313 #define DEBUG_MEMORY_LOCATION
\r
317 * LIBXML_DEBUG_RUNTIME:
\r
319 * Whether the runtime debugging is configured in
\r
322 #define LIBXML_DEBUG_RUNTIME
\r
326 * LIBXML_UNICODE_ENABLED:
\r
328 * Whether the Unicode related interfaces are compiled in
\r
331 #define LIBXML_UNICODE_ENABLED
\r
335 * LIBXML_REGEXP_ENABLED:
\r
337 * Whether the regular expressions interfaces are compiled in
\r
340 #define LIBXML_REGEXP_ENABLED
\r
344 * LIBXML_AUTOMATA_ENABLED:
\r
346 * Whether the automata interfaces are compiled in
\r
349 #define LIBXML_AUTOMATA_ENABLED
\r
353 * LIBXML_EXPR_ENABLED:
\r
355 * Whether the formal expressions interfaces are compiled in
\r
358 #define LIBXML_EXPR_ENABLED
\r
362 * LIBXML_SCHEMAS_ENABLED:
\r
364 * Whether the Schemas validation interfaces are compiled in
\r
367 #define LIBXML_SCHEMAS_ENABLED
\r
371 * LIBXML_SCHEMATRON_ENABLED:
\r
373 * Whether the Schematron validation interfaces are compiled in
\r
376 #define LIBXML_SCHEMATRON_ENABLED
\r
380 * LIBXML_MODULES_ENABLED:
\r
382 * Whether the module interfaces are compiled in
\r
385 #define LIBXML_MODULES_ENABLED
\r
387 * LIBXML_MODULE_EXTENSION:
\r
389 * the string suffix used by dynamic modules (usually shared libraries)
\r
391 #define LIBXML_MODULE_EXTENSION ".dll"
\r
395 * LIBXML_ZLIB_ENABLED:
\r
397 * Whether the Zlib support is compiled in
\r
400 #define LIBXML_ZLIB_ENABLED
\r
404 * LIBXML_LZMA_ENABLED:
\r
406 * Whether the Lzma support is compiled in
\r
409 #define LIBXML_LZMA_ENABLED
\r
413 #ifdef HAVE_ANSIDECL_H
\r
414 #include <ansidecl.h>
\r
418 * ATTRIBUTE_UNUSED:
\r
420 * Macro used to signal to GCC unused function parameters
\r
423 #ifndef ATTRIBUTE_UNUSED
\r
424 # if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
\r
425 # define ATTRIBUTE_UNUSED __attribute__((unused))
\r
427 # define ATTRIBUTE_UNUSED
\r
432 * LIBXML_ATTR_ALLOC_SIZE:
\r
434 * Macro used to indicate to GCC this is an allocator function
\r
437 #ifndef LIBXML_ATTR_ALLOC_SIZE
\r
438 # if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
\r
439 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
\r
441 # define LIBXML_ATTR_ALLOC_SIZE(x)
\r
444 # define LIBXML_ATTR_ALLOC_SIZE(x)
\r
448 * LIBXML_ATTR_FORMAT:
\r
450 * Macro used to indicate to GCC the parameter are printf like
\r
453 #ifndef LIBXML_ATTR_FORMAT
\r
454 # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
\r
455 # define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
\r
457 # define LIBXML_ATTR_FORMAT(fmt,args)
\r
460 # define LIBXML_ATTR_FORMAT(fmt,args)
\r
463 #else /* ! __GNUC__ */
\r
465 * ATTRIBUTE_UNUSED:
\r
467 * Macro used to signal to GCC unused function parameters
\r
469 #define ATTRIBUTE_UNUSED
\r
471 * LIBXML_ATTR_ALLOC_SIZE:
\r
473 * Macro used to indicate to GCC this is an allocator function
\r
475 #define LIBXML_ATTR_ALLOC_SIZE(x)
\r
477 * LIBXML_ATTR_FORMAT:
\r
479 * Macro used to indicate to GCC the parameter are printf like
\r
481 #define LIBXML_ATTR_FORMAT(fmt,args)
\r
482 #endif /* __GNUC__ */
\r
486 #endif /* __cplusplus */
\r