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