blob: 1c6bdb00254c80e480e03f9f197a4b5170dde7cb [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
Daniel Veillardbed7b052001-05-19 14:59:49 +000028/**
29 * WITH_TRIO:
30 *
Daniel Veillard92ad2102001-03-27 12:47:33 +000031 * Whether the trio support need to be configured in
32 */
33#if @WITH_TRIO@
34#define WITH_TRIO
35#else
36#define WITHOUT_TRIO
37#endif
38
Daniel Veillardbed7b052001-05-19 14:59:49 +000039/**
40 * LIBXML_FTP_ENABLED:
41 *
Owen Taylor3473f882001-02-23 17:55:21 +000042 * Whether the FTP support is configured in
43 */
44#if @WITH_FTP@
45#define LIBXML_FTP_ENABLED
46#else
47#define LIBXML_FTP_DISABLED
48#endif
49
Daniel Veillardbed7b052001-05-19 14:59:49 +000050/**
51 * LIBXML_HTTP_ENABLED:
52 *
Owen Taylor3473f882001-02-23 17:55:21 +000053 * Whether the HTTP support is configured in
54 */
55#if @WITH_HTTP@
56#define LIBXML_HTTP_ENABLED
57#else
58#define LIBXML_HTTP_DISABLED
59#endif
60
Daniel Veillardbed7b052001-05-19 14:59:49 +000061/**
62 * LIBXML_HTML_ENABLED:
63 *
Owen Taylor3473f882001-02-23 17:55:21 +000064 * Whether the HTML support is configured in
65 */
66#if @WITH_HTML@
67#define LIBXML_HTML_ENABLED
68#else
69#define LIBXML_HTML_DISABLED
70#endif
71
Daniel Veillardbed7b052001-05-19 14:59:49 +000072/**
73 * LIBXML_CATALOG_ENABLED:
74 *
Daniel Veillarda7374592001-05-10 14:17:55 +000075 * Whether the Catalog support is configured in
76 */
77#if @WITH_CATALOG@
78#define LIBXML_CATALOG_ENABLED
79#else
80#define LIBXML_CATALOG_DISABLED
81#endif
82
Daniel Veillardbed7b052001-05-19 14:59:49 +000083/**
84 * LIBXML_DOCB_ENABLED:
85 *
Daniel Veillardeae522a2001-04-23 13:41:34 +000086 * Whether the SGML Docbook support is configured in
Owen Taylor3473f882001-02-23 17:55:21 +000087 */
Daniel Veillardeae522a2001-04-23 13:41:34 +000088#if @WITH_DOCB@
89#define LIBXML_DOCB_ENABLED
90#else
91#define LIBXML_DOCB_DISABLED
92#endif
Owen Taylor3473f882001-02-23 17:55:21 +000093
Daniel Veillardbed7b052001-05-19 14:59:49 +000094/**
95 * LIBXML_XPATH_ENABLED:
96 *
Owen Taylor3473f882001-02-23 17:55:21 +000097 * Whether XPath is configured in
98 */
99#if @WITH_XPATH@
100#define LIBXML_XPATH_ENABLED
101#else
102#define LIBXML_XPATH_DISABLED
103#endif
104
Daniel Veillardbed7b052001-05-19 14:59:49 +0000105/**
106 * LIBXML_XPTR_ENABLED:
107 *
Owen Taylor3473f882001-02-23 17:55:21 +0000108 * Whether XPointer is configured in
109 */
110#if @WITH_XPTR@
111#define LIBXML_XPTR_ENABLED
112#else
113#define LIBXML_XPTR_DISABLED
114#endif
115
Daniel Veillardbed7b052001-05-19 14:59:49 +0000116/**
117 * LIBXML_XINCLUDE_ENABLED:
118 *
Owen Taylor3473f882001-02-23 17:55:21 +0000119 * Whether XInclude is configured in
120 */
121#if @WITH_XINCLUDE@
122#define LIBXML_XINCLUDE_ENABLED
123#else
124#define LIBXML_XINCLUDE_DISABLED
125#endif
126
Daniel Veillardbed7b052001-05-19 14:59:49 +0000127/**
128 * LIBXML_ICONV_ENABLED:
129 *
Owen Taylor3473f882001-02-23 17:55:21 +0000130 * Whether iconv support is available
131 */
Daniel Veillard9cc6dc62001-06-11 08:09:20 +0000132#if !defined(WIN32) || defined(__CYGWIN__)
Owen Taylor3473f882001-02-23 17:55:21 +0000133#if @WITH_ICONV@
134#define LIBXML_ICONV_ENABLED
135#else
136#define LIBXML_ICONV_DISABLED
137#endif
138#endif
139
Daniel Veillardbed7b052001-05-19 14:59:49 +0000140/**
141 * LIBXML_DEBUG_ENABLED:
142 *
Owen Taylor3473f882001-02-23 17:55:21 +0000143 * Whether Debugging module is configured in
144 */
145#if @WITH_DEBUG@
146#define LIBXML_DEBUG_ENABLED
147#else
148#define LIBXML_DEBUG_DISABLED
149#endif
150
Daniel Veillardbed7b052001-05-19 14:59:49 +0000151/**
152 * DEBUG_MEMORY_LOCATION:
153 *
Owen Taylor3473f882001-02-23 17:55:21 +0000154 * Whether the memory debugging is configured in
155 */
156#if @WITH_MEM_DEBUG@
157#define DEBUG_MEMORY_LOCATION
158#endif
159
160#ifndef LIBXML_DLL_IMPORT
161#if defined(WIN32) && !defined(STATIC)
162#define LIBXML_DLL_IMPORT __declspec(dllimport)
163#else
164#define LIBXML_DLL_IMPORT
165#endif
166#endif
167
Daniel Veillardbed7b052001-05-19 14:59:49 +0000168/**
169 * ATTRIBUTE_UNUSED:
170 *
171 * Macro used to signal to GCC unused function parameters
172 */
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000173#ifdef __GNUC__
Daniel Veillard27b55282001-04-11 12:22:25 +0000174#ifdef HAVE_ANSIDECL_H
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000175#include <ansidecl.h>
Daniel Veillard27b55282001-04-11 12:22:25 +0000176#endif
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000177#ifndef ATTRIBUTE_UNUSED
178#define ATTRIBUTE_UNUSED
179#endif
180#else
181#define ATTRIBUTE_UNUSED
182#endif
183
Owen Taylor3473f882001-02-23 17:55:21 +0000184#ifdef __cplusplus
185}
186#endif /* __cplusplus */
187#endif
188
189