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 | |
| 28 | /* |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 29 | * Whether the trio support need to be configured in |
| 30 | */ |
| 31 | #if @WITH_TRIO@ |
| 32 | #define WITH_TRIO |
| 33 | #else |
| 34 | #define WITHOUT_TRIO |
| 35 | #endif |
| 36 | |
| 37 | /* |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 38 | * Whether the FTP support is configured in |
| 39 | */ |
| 40 | #if @WITH_FTP@ |
| 41 | #define LIBXML_FTP_ENABLED |
| 42 | #else |
| 43 | #define LIBXML_FTP_DISABLED |
| 44 | #endif |
| 45 | |
| 46 | /* |
| 47 | * Whether the HTTP support is configured in |
| 48 | */ |
| 49 | #if @WITH_HTTP@ |
| 50 | #define LIBXML_HTTP_ENABLED |
| 51 | #else |
| 52 | #define LIBXML_HTTP_DISABLED |
| 53 | #endif |
| 54 | |
| 55 | /* |
| 56 | * Whether the HTML support is configured in |
| 57 | */ |
| 58 | #if @WITH_HTML@ |
| 59 | #define LIBXML_HTML_ENABLED |
| 60 | #else |
| 61 | #define LIBXML_HTML_DISABLED |
| 62 | #endif |
| 63 | |
| 64 | /* |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 65 | * Whether the SGML Docbook support is configured in |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 66 | */ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 67 | #if @WITH_DOCB@ |
| 68 | #define LIBXML_DOCB_ENABLED |
| 69 | #else |
| 70 | #define LIBXML_DOCB_DISABLED |
| 71 | #endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 72 | |
| 73 | /* |
| 74 | * Whether XPath is configured in |
| 75 | */ |
| 76 | #if @WITH_XPATH@ |
| 77 | #define LIBXML_XPATH_ENABLED |
| 78 | #else |
| 79 | #define LIBXML_XPATH_DISABLED |
| 80 | #endif |
| 81 | |
| 82 | /* |
| 83 | * Whether XPointer is configured in |
| 84 | */ |
| 85 | #if @WITH_XPTR@ |
| 86 | #define LIBXML_XPTR_ENABLED |
| 87 | #else |
| 88 | #define LIBXML_XPTR_DISABLED |
| 89 | #endif |
| 90 | |
| 91 | /* |
| 92 | * Whether XInclude is configured in |
| 93 | */ |
| 94 | #if @WITH_XINCLUDE@ |
| 95 | #define LIBXML_XINCLUDE_ENABLED |
| 96 | #else |
| 97 | #define LIBXML_XINCLUDE_DISABLED |
| 98 | #endif |
| 99 | |
| 100 | /* |
| 101 | * Whether iconv support is available |
| 102 | */ |
| 103 | #ifndef WIN32 |
| 104 | #if @WITH_ICONV@ |
| 105 | #define LIBXML_ICONV_ENABLED |
| 106 | #else |
| 107 | #define LIBXML_ICONV_DISABLED |
| 108 | #endif |
| 109 | #endif |
| 110 | |
| 111 | /* |
| 112 | * Whether Debugging module is configured in |
| 113 | */ |
| 114 | #if @WITH_DEBUG@ |
| 115 | #define LIBXML_DEBUG_ENABLED |
| 116 | #else |
| 117 | #define LIBXML_DEBUG_DISABLED |
| 118 | #endif |
| 119 | |
| 120 | /* |
| 121 | * Whether the memory debugging is configured in |
| 122 | */ |
| 123 | #if @WITH_MEM_DEBUG@ |
| 124 | #define DEBUG_MEMORY_LOCATION |
| 125 | #endif |
| 126 | |
| 127 | #ifndef LIBXML_DLL_IMPORT |
| 128 | #if defined(WIN32) && !defined(STATIC) |
| 129 | #define LIBXML_DLL_IMPORT __declspec(dllimport) |
| 130 | #else |
| 131 | #define LIBXML_DLL_IMPORT |
| 132 | #endif |
| 133 | #endif |
| 134 | |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 135 | #ifdef __GNUC__ |
Daniel Veillard | 27b5528 | 2001-04-11 12:22:25 +0000 | [diff] [blame] | 136 | #ifdef HAVE_ANSIDECL_H |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 137 | #include <ansidecl.h> |
Daniel Veillard | 27b5528 | 2001-04-11 12:22:25 +0000 | [diff] [blame] | 138 | #endif |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 139 | #ifndef ATTRIBUTE_UNUSED |
| 140 | #define ATTRIBUTE_UNUSED |
| 141 | #endif |
| 142 | #else |
| 143 | #define ATTRIBUTE_UNUSED |
| 144 | #endif |
| 145 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 146 | #ifdef __cplusplus |
| 147 | } |
| 148 | #endif /* __cplusplus */ |
| 149 | #endif |
| 150 | |
| 151 | |