2 * xmlversion.h : compile-time version informations for the XML parser.
4 * See Copyright for the status of this software.
9 #ifndef __XML_VERSION_H__
10 #define __XML_VERSION_H__
17 * use those to be sure nothing nasty will happen if
18 * your library and includes mismatch
20 #ifndef LIBXML2_COMPILING_MSCCDEF
21 extern void xmlCheckVersion(int version);
22 #endif /* LIBXML2_COMPILING_MSCCDEF */
25 * LIBXML_DOTTED_VERSION:
27 * the version string like "1.2.3"
29 #define LIBXML_DOTTED_VERSION "@VERSION@"
34 * the version number: 1.2.3 value is 1002003
36 #define LIBXML_VERSION @LIBXML_VERSION_NUMBER@
39 * LIBXML_VERSION_STRING:
41 * the version number string, 1.2.3 value is "1002003"
43 #define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
46 * LIBXML_TEST_VERSION:
48 * Macro to check that the libxml version in use is compatible with
49 * the version the software has been compiled against
51 #define LIBXML_TEST_VERSION xmlCheckVersion(@LIBXML_VERSION_NUMBER@);
58 * defined if the trio support need to be configured in
65 * defined if the trio support should not be configured in
74 * LIBXML_THREAD_ENABLED:
76 * Whether the thread support is configured in
79 #if defined(_REENTRANT) || defined(__MT__) || (_POSIX_C_SOURCE - 0 >= 199506L)
80 #define LIBXML_THREAD_ENABLED
87 * Whether the FTP support is configured in
90 #define LIBXML_FTP_ENABLED
94 * LIBXML_HTTP_ENABLED:
96 * Whether the HTTP support is configured in
99 #define LIBXML_HTTP_ENABLED
103 * LIBXML_HTML_ENABLED:
105 * Whether the HTML support is configured in
108 #define LIBXML_HTML_ENABLED
112 * LIBXML_C14N_ENABLED:
114 * Whether the Canonicalization support is configured in
117 #define LIBXML_C14N_ENABLED
121 * LIBXML_CATALOG_ENABLED:
123 * Whether the Catalog support is configured in
126 #define LIBXML_CATALOG_ENABLED
130 * LIBXML_DOCB_ENABLED:
132 * Whether the SGML Docbook support is configured in
135 #define LIBXML_DOCB_ENABLED
139 * LIBXML_XPATH_ENABLED:
141 * Whether XPath is configured in
144 #define LIBXML_XPATH_ENABLED
148 * LIBXML_XPTR_ENABLED:
150 * Whether XPointer is configured in
153 #define LIBXML_XPTR_ENABLED
157 * LIBXML_XINCLUDE_ENABLED:
159 * Whether XInclude is configured in
162 #define LIBXML_XINCLUDE_ENABLED
166 * LIBXML_ICONV_ENABLED:
168 * Whether iconv support is available
171 #define LIBXML_ICONV_ENABLED
175 * LIBXML_ISO8859X_ENABLED:
177 * Whether ISO-8859-* support is made available in case iconv is not
180 #define LIBXML_ISO8859X_ENABLED
184 * LIBXML_DEBUG_ENABLED:
186 * Whether Debugging module is configured in
189 #define LIBXML_DEBUG_ENABLED
193 * DEBUG_MEMORY_LOCATION:
195 * Whether the memory debugging is configured in
198 #define DEBUG_MEMORY_LOCATION
202 * LIBXML_UNICODE_ENABLED
204 * Whether the Unicode related interfaces are compiled in
207 #define LIBXML_UNICODE_ENABLED
211 * LIBXML_REGEXP_ENABLED
213 * Whether the regular expressions interfaces are compiled in
216 #define LIBXML_REGEXP_ENABLED
220 * LIBXML_AUTOMATA_ENABLED
222 * Whether the automata interfaces are compiled in
225 #define LIBXML_AUTOMATA_ENABLED
229 * LIBXML_SCHEMAS_ENABLED
231 * Whether the Schemas validation interfaces are compiled in
234 #define LIBXML_SCHEMAS_ENABLED
240 * Used on Windows (MS C compiler only) to declare a variable as
241 * imported from the library. This macro should be empty when compiling
242 * libxml itself. It should expand to __declspec(dllimport)
243 * when the client code includes this header, and that only if the client
244 * links dynamically against libxml.
245 * For this to work, we need three macros. One tells us which compiler is
246 * being used and luckily the compiler defines such a thing: _MSC_VER. The
247 * second macro tells us if we are compiling libxml or the client code and
248 * we define the macro IN_LIBXML on the compiler's command line for this
249 * purpose. The third macro, LIBXML_STATIC, must be defined by any client
250 * code which links against libxml statically.
252 #ifndef LIBXML_DLL_IMPORT
253 #if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__CYGWIN__)) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
254 #define LIBXML_DLL_IMPORT __declspec(dllimport)
256 #define LIBXML_DLL_IMPORT
263 * Macro used to signal to GCC unused function parameters
266 #ifdef HAVE_ANSIDECL_H
267 #include <ansidecl.h>
269 #ifndef ATTRIBUTE_UNUSED
270 #define ATTRIBUTE_UNUSED
273 #define ATTRIBUTE_UNUSED
278 #endif /* __cplusplus */