ReactOS 0.4.16-dev-2208-g6350669
xmlversion.h
Go to the documentation of this file.
1/*
2 * Summary: compile-time version information
3 * Description: compile-time version information 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
16extern "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
25#endif /* LIBXML2_COMPILING_MSCCDEF */
26
32#define LIBXML_DOTTED_VERSION "2.12.8"
33
39#define LIBXML_VERSION 21208
40
46#define LIBXML_VERSION_STRING "21208"
47
53#define LIBXML_VERSION_EXTRA ""
54
61#define LIBXML_TEST_VERSION xmlCheckVersion(21208);
62
63#ifndef VMS
64#if 0
70#define WITH_TRIO
71#else
77#define WITHOUT_TRIO
78#endif
79#else /* VMS */
85#define WITH_TRIO 1
86#endif /* VMS */
87
93#if 1
94#define LIBXML_THREAD_ENABLED
95#endif
96
102#if 0
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_XPATH_ENABLED
239#endif
240
246#if 1
247#define LIBXML_XPTR_ENABLED
248#endif
249
255#if 0
256#define LIBXML_XPTR_LOCS_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 1
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 0
384#define LIBXML_MODULES_ENABLED
390#define LIBXML_MODULE_EXTENSION ".dll"
391#endif
392
398#if 0
399#define LIBXML_ZLIB_ENABLED
400#endif
401
407#if 0
408#define LIBXML_LZMA_ENABLED
409#endif
410
411#ifdef __GNUC__
414#ifndef ATTRIBUTE_UNUSED
415# if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
416# define ATTRIBUTE_UNUSED __attribute__((unused))
417# else
418# define ATTRIBUTE_UNUSED
419# endif
420#endif
421
422#ifndef LIBXML_ATTR_ALLOC_SIZE
423# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
424# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
425# else
426# define LIBXML_ATTR_ALLOC_SIZE(x)
427# endif
428#else
429# define LIBXML_ATTR_ALLOC_SIZE(x)
430#endif
431
432#ifndef LIBXML_ATTR_FORMAT
433# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
434# define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
435# else
436# define LIBXML_ATTR_FORMAT(fmt,args)
437# endif
438#else
439# define LIBXML_ATTR_FORMAT(fmt,args)
440#endif
441
442#ifndef XML_DEPRECATED
443# if defined (IN_LIBXML) || (__GNUC__ * 100 + __GNUC_MINOR__ < 301)
444# define XML_DEPRECATED
445/* Available since at least GCC 3.1 */
446# else
447# define XML_DEPRECATED __attribute__((deprecated))
448# endif
449#endif
450
451#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)
452 #if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)
453 #define XML_IGNORE_FPTR_CAST_WARNINGS \
454 _Pragma("GCC diagnostic push") \
455 _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
456 _Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")
457 #else
458 #define XML_IGNORE_FPTR_CAST_WARNINGS \
459 _Pragma("GCC diagnostic push") \
460 _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
461 #endif
462 #define XML_POP_WARNINGS \
463 _Pragma("GCC diagnostic pop")
464#else
465 #define XML_IGNORE_FPTR_CAST_WARNINGS
466 #define XML_POP_WARNINGS
467#endif
468
469#else /* ! __GNUC__ */
470#define ATTRIBUTE_UNUSED
471#define LIBXML_ATTR_ALLOC_SIZE(x)
472#define LIBXML_ATTR_FORMAT(fmt,args)
473#ifndef XML_DEPRECATED
474# if defined (IN_LIBXML) || !defined (_MSC_VER)
475# define XML_DEPRECATED
476/* Available since Visual Studio 2005 */
477# elif defined (_MSC_VER) && (_MSC_VER >= 1400)
478# define XML_DEPRECATED __declspec(deprecated)
479# endif
480#endif
481#if defined (_MSC_VER) && (_MSC_VER >= 1400)
482# define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
483#else
484# define XML_IGNORE_FPTR_CAST_WARNINGS
485#endif
486#ifndef XML_POP_WARNINGS
487# if defined (_MSC_VER) && (_MSC_VER >= 1400)
488# define XML_POP_WARNINGS __pragma(warning(pop))
489# else
490# define XML_POP_WARNINGS
491# endif
492#endif
493#endif /* __GNUC__ */
494
495#define XML_NO_ATTR
496
497#ifdef LIBXML_THREAD_ENABLED
498 #define XML_DECLARE_GLOBAL(name, type, attrs) \
499 attrs XMLPUBFUN type *__##name(void);
500 #define XML_GLOBAL_MACRO(name) (*__##name())
501#else
502 #define XML_DECLARE_GLOBAL(name, type, attrs) \
503 attrs XMLPUBVAR type name;
504#endif
505
506#ifdef __cplusplus
507}
508#endif /* __cplusplus */
509#endif
static const WCHAR version[]
Definition: asmname.c:66
#define XMLPUBFUN
Definition: xmlexports.h:30
XMLPUBFUN void xmlCheckVersion(int version)