2 * Summary: compile-time version informations on Windows
3 * Description: compile-time version informations for the XML library
4 * when compiled on the Windows platform
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
11 #ifndef __XML_VERSION_H__
12 #define __XML_VERSION_H__
19 * use those to be sure nothing nasty will happen if
20 * your library and includes mismatch
22 #ifndef LIBXML2_COMPILING_MSCCDEF
23 extern void xmlCheckVersion(int version);
24 #endif /* LIBXML2_COMPILING_MSCCDEF */
27 * LIBXML_DOTTED_VERSION:
29 * the version string like "1.2.3"
31 #define LIBXML_DOTTED_VERSION "2.4.26"
36 * the version number: 1.2.3 value is 1002003
38 #define LIBXML_VERSION 20426
41 * LIBXML_VERSION_STRING:
43 * the version number string, 1.2.3 value is "1002003"
45 #define LIBXML_VERSION_STRING "20426"
48 * LIBXML_TEST_VERSION:
50 * Macro to check that the libxml version in use is compatible with
51 * the version the software has been compiled against
53 #define LIBXML_TEST_VERSION xmlCheckVersion(20426);
59 * defined if the trio support need to be configured in
66 * defined if the trio support should not be configured in
72 * LIBXML_THREAD_ENABLED:
74 * Whether the thread support is configured in
77 #define LIBXML_THREAD_ENABLED
83 * Whether the FTP support is configured in
86 #define LIBXML_FTP_ENABLED
90 * LIBXML_HTTP_ENABLED:
92 * Whether the HTTP support is configured in
95 #define LIBXML_HTTP_ENABLED
99 * LIBXML_HTML_ENABLED:
101 * Whether the HTML support is configured in
104 #define LIBXML_HTML_ENABLED
108 * LIBXML_CATALOG_ENABLED:
110 * Whether the Catalog support is configured in
113 #define LIBXML_CATALOG_ENABLED
117 * LIBXML_DOCB_ENABLED:
119 * Whether the SGML Docbook support is configured in
122 #define LIBXML_DOCB_ENABLED
126 * LIBXML_XPATH_ENABLED:
128 * Whether XPath is configured in
131 #define LIBXML_XPATH_ENABLED
135 * LIBXML_XPTR_ENABLED:
137 * Whether XPointer is configured in
140 #define LIBXML_XPTR_ENABLED
144 * LIBXML_C14N_ENABLED:
146 * Whether the Canonicalization support is configured in
149 #define LIBXML_C14N_ENABLED
153 * LIBXML_XINCLUDE_ENABLED:
155 * Whether XInclude is configured in
158 #define LIBXML_XINCLUDE_ENABLED
162 * LIBXML_ICONV_ENABLED:
164 * Whether iconv support is available
167 #define LIBXML_ICONV_ENABLED
171 * LIBXML_DEBUG_ENABLED:
173 * Whether Debugging module is configured in
176 #define LIBXML_DEBUG_ENABLED
180 * DEBUG_MEMORY_LOCATION:
182 * Whether the memory debugging is configured in
185 #define DEBUG_MEMORY_LOCATION
191 * Used on Windows (MS C compiler only) to declare a variable as
192 * imported from the library. This macro should be empty when compiling
193 * libxml itself. It should expand to __declspec(dllimport)
194 * when the client code includes this header, and that only if the client
195 * links dynamically against libxml.
196 * For this to work, we need three macros. One tells us which compiler is
197 * being used and luckily the compiler defines such a thing: _MSC_VER. The
198 * second macro tells us if we are compiling libxml or the client code and
199 * we define the macro IN_LIBXML on the compiler's command line for this
200 * purpose. The third macro, LIBXML_STATIC, must be defined by any client
201 * code which links against libxml statically.
203 #ifndef LIBXML_DLL_IMPORT
204 #if defined(_MSC_VER) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
205 #define LIBXML_DLL_IMPORT __declspec(dllimport)
207 #define LIBXML_DLL_IMPORT
214 * Macro used to signal to GCC unused function parameters
217 #ifdef HAVE_ANSIDECL_H
218 #include <ansidecl.h>
220 #ifndef ATTRIBUTE_UNUSED
221 #define ATTRIBUTE_UNUSED
224 #define ATTRIBUTE_UNUSED
228 * #pragma comment(lib, "iconv.lib")
230 * pragma understood my MS compiler which enables a conditional link with
234 #if defined LIBXML_ICONV_ENABLED && !defined LIBXML2_COMPILING_MSCCDEF
235 #pragma comment(lib, "iconv.lib")
241 #endif /* __cplusplus */