| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 1 | /* |
| 2 | * xmlwin32version.h : compile-time version informations for the XML parser |
| 3 | * when compiled on the Windows platform |
| 4 | * |
| 5 | * See Copyright for the status of this software. |
| 6 | * |
| 7 | * daniel@veillard.com |
| 8 | */ |
| 9 | |
| 10 | #ifndef __XML_VERSION_H__ |
| 11 | #define __XML_VERSION_H__ |
| 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
| 17 | /* |
| 18 | * use those to be sure nothing nasty will happen if |
| 19 | * your library and includes mismatch |
| 20 | */ |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 21 | #ifndef LIBXML2_COMPILING_MSCCDEF |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 22 | extern void xmlCheckVersion(int version); |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 23 | #endif /* LIBXML2_COMPILING_MSCCDEF */ |
| 24 | |
| 25 | /** |
| 26 | * LIBXML_DOTTED_VERSION: |
| 27 | * |
| 28 | * the version string like "1.2.3" |
| 29 | */ |
| Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 30 | #define LIBXML_DOTTED_VERSION "2.4.14" |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 31 | |
| 32 | /** |
| 33 | * LIBXML_VERSION: |
| 34 | * |
| 35 | * the version number: 1.2.3 value is 1002003 |
| 36 | */ |
| Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 37 | #define LIBXML_VERSION 20414 |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 38 | |
| 39 | /** |
| 40 | * LIBXML_VERSION_STRING: |
| 41 | * |
| 42 | * the version number string, 1.2.3 value is "1002003" |
| 43 | */ |
| Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 44 | #define LIBXML_VERSION_STRING "20414" |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 45 | |
| 46 | /** |
| 47 | * LIBXML_TEST_VERSION: |
| 48 | * |
| 49 | * Macro to check that the libxml version in use is compatible with |
| 50 | * the version the software has been compiled against |
| 51 | */ |
| Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 52 | #define LIBXML_TEST_VERSION xmlCheckVersion(20414); |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 53 | |
| Daniel Veillard | 7cf5e44 | 2001-09-10 20:16:32 +0000 | [diff] [blame] | 54 | #if 0 |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 55 | /** |
| 56 | * WITH_TRIO: |
| 57 | * |
| Daniel Veillard | 7cf5e44 | 2001-09-10 20:16:32 +0000 | [diff] [blame] | 58 | * defined if the trio support need to be configured in |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 59 | */ |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 60 | #define WITH_TRIO |
| Daniel Veillard | 7cf5e44 | 2001-09-10 20:16:32 +0000 | [diff] [blame] | 61 | #else |
| 62 | /** |
| 63 | * WITHOUT_TRIO: |
| 64 | * |
| 65 | * defined if the trio support should not be configured in |
| 66 | */ |
| 67 | #define WITHOUT_TRIO |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 68 | #endif |
| 69 | |
| 70 | /** |
| Daniel Veillard | db0eb8d | 2002-01-13 13:35:00 +0000 | [diff] [blame] | 71 | * LIBXML_THREADS_ENABLED: |
| 72 | * |
| 73 | * Whether the thread support is configured in |
| 74 | */ |
| 75 | #if 0 |
| 76 | #define LIBXML_THREAD_ENABLED |
| 77 | #endif |
| 78 | |
| 79 | /** |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 80 | * LIBXML_FTP_ENABLED: |
| 81 | * |
| 82 | * Whether the FTP support is configured in |
| 83 | */ |
| 84 | #if 1 |
| 85 | #define LIBXML_FTP_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 86 | #endif |
| 87 | |
| 88 | /** |
| 89 | * LIBXML_HTTP_ENABLED: |
| 90 | * |
| 91 | * Whether the HTTP support is configured in |
| 92 | */ |
| 93 | #if 1 |
| 94 | #define LIBXML_HTTP_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 95 | #endif |
| 96 | |
| 97 | /** |
| 98 | * LIBXML_HTML_ENABLED: |
| 99 | * |
| 100 | * Whether the HTML support is configured in |
| 101 | */ |
| 102 | #if 1 |
| 103 | #define LIBXML_HTML_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 104 | #endif |
| 105 | |
| 106 | /** |
| 107 | * LIBXML_CATALOG_ENABLED: |
| 108 | * |
| 109 | * Whether the Catalog support is configured in |
| 110 | */ |
| 111 | #if 1 |
| 112 | #define LIBXML_CATALOG_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 113 | #endif |
| 114 | |
| 115 | /** |
| 116 | * LIBXML_DOCB_ENABLED: |
| 117 | * |
| 118 | * Whether the SGML Docbook support is configured in |
| 119 | */ |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 120 | #if 1 |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 121 | #define LIBXML_DOCB_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 122 | #endif |
| 123 | |
| 124 | /** |
| 125 | * LIBXML_XPATH_ENABLED: |
| 126 | * |
| 127 | * Whether XPath is configured in |
| 128 | */ |
| 129 | #if 1 |
| 130 | #define LIBXML_XPATH_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 131 | #endif |
| 132 | |
| 133 | /** |
| 134 | * LIBXML_XPTR_ENABLED: |
| 135 | * |
| 136 | * Whether XPointer is configured in |
| 137 | */ |
| 138 | #if 1 |
| 139 | #define LIBXML_XPTR_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 140 | #endif |
| 141 | |
| 142 | /** |
| 143 | * LIBXML_XINCLUDE_ENABLED: |
| 144 | * |
| 145 | * Whether XInclude is configured in |
| 146 | */ |
| 147 | #if 1 |
| 148 | #define LIBXML_XINCLUDE_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 149 | #endif |
| 150 | |
| 151 | /** |
| 152 | * LIBXML_ICONV_ENABLED: |
| 153 | * |
| 154 | * Whether iconv support is available |
| 155 | */ |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 156 | #if 0 |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 157 | #define LIBXML_ICONV_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 158 | #endif |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 159 | |
| 160 | /** |
| 161 | * LIBXML_DEBUG_ENABLED: |
| 162 | * |
| 163 | * Whether Debugging module is configured in |
| 164 | */ |
| 165 | #if 1 |
| 166 | #define LIBXML_DEBUG_ENABLED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 167 | #endif |
| 168 | |
| 169 | /** |
| 170 | * DEBUG_MEMORY_LOCATION: |
| 171 | * |
| 172 | * Whether the memory debugging is configured in |
| 173 | */ |
| 174 | #if 0 |
| 175 | #define DEBUG_MEMORY_LOCATION |
| 176 | #endif |
| 177 | |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 178 | /** |
| 179 | * LIBXML_DLL_IMPORT: |
| 180 | * |
| 181 | * Used on Windows (MS C compiler only) to declare a variable as |
| 182 | * imported from the library. This macro should be empty when compiling |
| 183 | * libxml itself. It should expand to __declspec(dllimport) |
| 184 | * when the client code includes this header, and that only if the client |
| 185 | * links dynamically against libxml. |
| 186 | * For this to work, we need three macros. One tells us which compiler is |
| 187 | * being used and luckily the compiler defines such a thing: _MSC_VER. The |
| 188 | * second macro tells us if we are compiling libxml or the client code and |
| 189 | * we define the macro IN_LIBXML on the compiler's command line for this |
| 190 | * purpose. The third macro, LIBXML_STATIC, must be defined by any client |
| 191 | * code which links against libxml statically. |
| 192 | */ |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 193 | #ifndef LIBXML_DLL_IMPORT |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 194 | #if defined(_MSC_VER) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC) |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 195 | #define LIBXML_DLL_IMPORT __declspec(dllimport) |
| 196 | #else |
| 197 | #define LIBXML_DLL_IMPORT |
| 198 | #endif |
| 199 | #endif |
| 200 | |
| 201 | /** |
| 202 | * ATTRIBUTE_UNUSED: |
| 203 | * |
| 204 | * Macro used to signal to GCC unused function parameters |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 205 | */ |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 206 | #ifdef __GNUC__ |
| 207 | #ifdef HAVE_ANSIDECL_H |
| 208 | #include <ansidecl.h> |
| 209 | #endif |
| 210 | #ifndef ATTRIBUTE_UNUSED |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 211 | #define ATTRIBUTE_UNUSED |
| Daniel Veillard | 50f3437 | 2001-08-03 12:06:36 +0000 | [diff] [blame] | 212 | #endif |
| 213 | #else |
| 214 | #define ATTRIBUTE_UNUSED |
| 215 | #endif |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 216 | |
| Daniel Veillard | 8e3943c | 2001-11-12 21:35:44 +0000 | [diff] [blame] | 217 | /** |
| 218 | * #pragma comment(lib, "iconv.lib") |
| 219 | * |
| 220 | * pragma understood my MS compiler which enables a conditional link with |
| 221 | * iconv. |
| 222 | */ |
| 223 | #ifdef _MSC_VER |
| 224 | #if defined LIBXML_ICONV_ENABLED && !defined LIBXML2_COMPILING_MSCCDEF |
| 225 | #pragma comment(lib, "iconv.lib") |
| 226 | #endif |
| 227 | #endif |
| 228 | |
| Daniel Veillard | fdb1f24 | 2001-07-27 23:32:44 +0000 | [diff] [blame] | 229 | #ifdef __cplusplus |
| 230 | } |
| 231 | #endif /* __cplusplus */ |
| 232 | #endif |