Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 1 | /* |
| 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 |
| 13 | extern "C" { |
| 14 | #endif |
| 15 | |
| 16 | /* |
| 17 | * use those to be sure nothing nasty will happen if |
| 18 | * your library and includes mismatch |
| 19 | */ |
Daniel Veillard | 2d90de4 | 2001-04-16 17:46:18 +0000 | [diff] [blame] | 20 | #ifndef LIBXML2_COMPILING_MSCCDEF |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 21 | extern void xmlCheckVersion(int version); |
Daniel Veillard | 2d90de4 | 2001-04-16 17:46:18 +0000 | [diff] [blame] | 22 | #endif /* LIBXML2_COMPILING_MSCCDEF */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 23 | #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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 28 | /** |
| 29 | * WITH_TRIO: |
| 30 | * |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 31 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 39 | /** |
| 40 | * LIBXML_FTP_ENABLED: |
| 41 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 42 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 50 | /** |
| 51 | * LIBXML_HTTP_ENABLED: |
| 52 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 53 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 61 | /** |
| 62 | * LIBXML_HTML_ENABLED: |
| 63 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 64 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 72 | /** |
| 73 | * LIBXML_CATALOG_ENABLED: |
| 74 | * |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 75 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 83 | /** |
| 84 | * LIBXML_DOCB_ENABLED: |
| 85 | * |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 86 | * Whether the SGML Docbook support is configured in |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 87 | */ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 88 | #if @WITH_DOCB@ |
| 89 | #define LIBXML_DOCB_ENABLED |
| 90 | #else |
| 91 | #define LIBXML_DOCB_DISABLED |
| 92 | #endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 93 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 94 | /** |
| 95 | * LIBXML_XPATH_ENABLED: |
| 96 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 97 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 105 | /** |
| 106 | * LIBXML_XPTR_ENABLED: |
| 107 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 108 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 116 | /** |
| 117 | * LIBXML_XINCLUDE_ENABLED: |
| 118 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 119 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 127 | /** |
| 128 | * LIBXML_ICONV_ENABLED: |
| 129 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 130 | * Whether iconv support is available |
| 131 | */ |
Daniel Veillard | 9cc6dc6 | 2001-06-11 08:09:20 +0000 | [diff] [blame] | 132 | #if !defined(WIN32) || defined(__CYGWIN__) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 133 | #if @WITH_ICONV@ |
| 134 | #define LIBXML_ICONV_ENABLED |
| 135 | #else |
| 136 | #define LIBXML_ICONV_DISABLED |
| 137 | #endif |
| 138 | #endif |
| 139 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 140 | /** |
| 141 | * LIBXML_DEBUG_ENABLED: |
| 142 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 143 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 151 | /** |
| 152 | * DEBUG_MEMORY_LOCATION: |
| 153 | * |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 154 | * 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 Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 168 | /** |
| 169 | * ATTRIBUTE_UNUSED: |
| 170 | * |
| 171 | * Macro used to signal to GCC unused function parameters |
| 172 | */ |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 173 | #ifdef __GNUC__ |
Daniel Veillard | 27b5528 | 2001-04-11 12:22:25 +0000 | [diff] [blame] | 174 | #ifdef HAVE_ANSIDECL_H |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 175 | #include <ansidecl.h> |
Daniel Veillard | 27b5528 | 2001-04-11 12:22:25 +0000 | [diff] [blame] | 176 | #endif |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 177 | #ifndef ATTRIBUTE_UNUSED |
| 178 | #define ATTRIBUTE_UNUSED |
| 179 | #endif |
| 180 | #else |
| 181 | #define ATTRIBUTE_UNUSED |
| 182 | #endif |
| 183 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 184 | #ifdef __cplusplus |
| 185 | } |
| 186 | #endif /* __cplusplus */ |
| 187 | #endif |
| 188 | |
| 189 | |