blob: 6725b846e3ec69aafad9e19eaf43afc516f5c4cf [file] [log] [blame]
Owen Taylor3473f882001-02-23 17:55:21 +00001/*
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@w3.org
7 */
8
9#ifndef __XML_VERSION_H__
10#define __XML_VERSION_H__
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16/*
17 * use those to be sure nothing nasty will happen if
18 * your library and includes mismatch
19 */
Daniel Veillard2d90de42001-04-16 17:46:18 +000020#ifndef LIBXML2_COMPILING_MSCCDEF
Owen Taylor3473f882001-02-23 17:55:21 +000021extern void xmlCheckVersion(int version);
Daniel Veillard2d90de42001-04-16 17:46:18 +000022#endif /* LIBXML2_COMPILING_MSCCDEF */
Owen Taylor3473f882001-02-23 17:55:21 +000023#define LIBXML_DOTTED_VERSION "@VERSION@"
24#define LIBXML_VERSION @LIBXML_VERSION_NUMBER@
25#define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
26#define LIBXML_TEST_VERSION xmlCheckVersion(@LIBXML_VERSION_NUMBER@);
27
28/*
Daniel Veillard92ad2102001-03-27 12:47:33 +000029 * Whether the trio support need to be configured in
30 */
31#if @WITH_TRIO@
32#define WITH_TRIO
33#else
34#define WITHOUT_TRIO
35#endif
36
37/*
Owen Taylor3473f882001-02-23 17:55:21 +000038 * Whether the FTP support is configured in
39 */
40#if @WITH_FTP@
41#define LIBXML_FTP_ENABLED
42#else
43#define LIBXML_FTP_DISABLED
44#endif
45
46/*
47 * Whether the HTTP support is configured in
48 */
49#if @WITH_HTTP@
50#define LIBXML_HTTP_ENABLED
51#else
52#define LIBXML_HTTP_DISABLED
53#endif
54
55/*
56 * Whether the HTML support is configured in
57 */
58#if @WITH_HTML@
59#define LIBXML_HTML_ENABLED
60#else
61#define LIBXML_HTML_DISABLED
62#endif
63
64/*
Daniel Veillardeae522a2001-04-23 13:41:34 +000065 * Whether the SGML Docbook support is configured in
Owen Taylor3473f882001-02-23 17:55:21 +000066 */
Daniel Veillardeae522a2001-04-23 13:41:34 +000067#if @WITH_DOCB@
68#define LIBXML_DOCB_ENABLED
69#else
70#define LIBXML_DOCB_DISABLED
71#endif
Owen Taylor3473f882001-02-23 17:55:21 +000072
73/*
74 * Whether XPath is configured in
75 */
76#if @WITH_XPATH@
77#define LIBXML_XPATH_ENABLED
78#else
79#define LIBXML_XPATH_DISABLED
80#endif
81
82/*
83 * Whether XPointer is configured in
84 */
85#if @WITH_XPTR@
86#define LIBXML_XPTR_ENABLED
87#else
88#define LIBXML_XPTR_DISABLED
89#endif
90
91/*
92 * Whether XInclude is configured in
93 */
94#if @WITH_XINCLUDE@
95#define LIBXML_XINCLUDE_ENABLED
96#else
97#define LIBXML_XINCLUDE_DISABLED
98#endif
99
100/*
101 * Whether iconv support is available
102 */
103#ifndef WIN32
104#if @WITH_ICONV@
105#define LIBXML_ICONV_ENABLED
106#else
107#define LIBXML_ICONV_DISABLED
108#endif
109#endif
110
111/*
112 * Whether Debugging module is configured in
113 */
114#if @WITH_DEBUG@
115#define LIBXML_DEBUG_ENABLED
116#else
117#define LIBXML_DEBUG_DISABLED
118#endif
119
120/*
121 * Whether the memory debugging is configured in
122 */
123#if @WITH_MEM_DEBUG@
124#define DEBUG_MEMORY_LOCATION
125#endif
126
127#ifndef LIBXML_DLL_IMPORT
128#if defined(WIN32) && !defined(STATIC)
129#define LIBXML_DLL_IMPORT __declspec(dllimport)
130#else
131#define LIBXML_DLL_IMPORT
132#endif
133#endif
134
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000135#ifdef __GNUC__
Daniel Veillard27b55282001-04-11 12:22:25 +0000136#ifdef HAVE_ANSIDECL_H
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000137#include <ansidecl.h>
Daniel Veillard27b55282001-04-11 12:22:25 +0000138#endif
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000139#ifndef ATTRIBUTE_UNUSED
140#define ATTRIBUTE_UNUSED
141#endif
142#else
143#define ATTRIBUTE_UNUSED
144#endif
145
Owen Taylor3473f882001-02-23 17:55:21 +0000146#ifdef __cplusplus
147}
148#endif /* __cplusplus */
149#endif
150
151