Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 1 | /* |
Daniel Veillard | be58697 | 2003-11-18 20:56:51 +0000 | [diff] [blame] | 2 | * Summary: compile-time version informations |
3 | * Description: compile-time version informations for the XML library | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 4 | * |
Daniel Veillard | be58697 | 2003-11-18 20:56:51 +0000 | [diff] [blame] | 5 | * Copy: See Copyright for the status of this software. |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 6 | * |
Daniel Veillard | be58697 | 2003-11-18 20:56:51 +0000 | [diff] [blame] | 7 | * Author: Daniel Veillard |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 8 | */ |
9 | |||||
10 | #ifndef __XML_VERSION_H__ | ||||
11 | #define __XML_VERSION_H__ | ||||
12 | |||||
Igor Zlatkovic | f05e5d1 | 2003-08-25 09:15:36 +0000 | [diff] [blame] | 13 | #include <libxml/xmlexports.h> |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 14 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 15 | #ifdef __cplusplus |
16 | extern "C" { | ||||
17 | #endif | ||||
18 | |||||
19 | /* | ||||
20 | * use those to be sure nothing nasty will happen if | ||||
21 | * your library and includes mismatch | ||||
22 | */ | ||||
Daniel Veillard | 2d90de4 | 2001-04-16 17:46:18 +0000 | [diff] [blame] | 23 | #ifndef LIBXML2_COMPILING_MSCCDEF |
Igor Zlatkovic | 76874e4 | 2003-08-25 09:05:12 +0000 | [diff] [blame] | 24 | XMLPUBFUN void XMLCALL xmlCheckVersion(int version); |
Daniel Veillard | 2d90de4 | 2001-04-16 17:46:18 +0000 | [diff] [blame] | 25 | #endif /* LIBXML2_COMPILING_MSCCDEF */ |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 26 | |
27 | /** | ||||
28 | * LIBXML_DOTTED_VERSION: | ||||
29 | * | ||||
30 | * the version string like "1.2.3" | ||||
31 | */ | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 32 | #define LIBXML_DOTTED_VERSION "@VERSION@" |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 33 | |
34 | /** | ||||
35 | * LIBXML_VERSION: | ||||
36 | * | ||||
Daniel Veillard | f4721d6 | 2006-10-11 21:12:10 +0000 | [diff] [blame] | 37 | * the version number: 1.2.3 value is 10203 |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 38 | */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 39 | #define LIBXML_VERSION @LIBXML_VERSION_NUMBER@ |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 40 | |
41 | /** | ||||
42 | * LIBXML_VERSION_STRING: | ||||
43 | * | ||||
Daniel Veillard | f4721d6 | 2006-10-11 21:12:10 +0000 | [diff] [blame] | 44 | * the version number string, 1.2.3 value is "10203" |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 45 | */ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 46 | #define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@" |
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 47 | |
48 | /** | ||||
William M. Brack | f402549 | 2004-08-18 21:08:46 +0000 | [diff] [blame] | 49 | * LIBXML_VERSION_EXTRA: |
50 | * | ||||
51 | * extra version information, used to show a CVS compilation | ||||
52 | */ | ||||
53 | #define LIBXML_VERSION_EXTRA "@LIBXML_VERSION_EXTRA@" | ||||
54 | |||||
55 | /** | ||||
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 56 | * LIBXML_TEST_VERSION: |
57 | * | ||||
58 | * Macro to check that the libxml version in use is compatible with | ||||
59 | * the version the software has been compiled against | ||||
60 | */ | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 61 | #define LIBXML_TEST_VERSION xmlCheckVersion(@LIBXML_VERSION_NUMBER@); |
62 | |||||
Daniel Veillard | acf7ff0 | 2001-10-29 20:21:47 +0000 | [diff] [blame] | 63 | #ifndef VMS |
Daniel Veillard | 7cf5e44 | 2001-09-10 20:16:32 +0000 | [diff] [blame] | 64 | #if @WITH_TRIO@ |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 65 | /** |
66 | * WITH_TRIO: | ||||
67 | * | ||||
Daniel Veillard | 7cf5e44 | 2001-09-10 20:16:32 +0000 | [diff] [blame] | 68 | * defined if the trio support need to be configured in |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 69 | */ |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 70 | #define WITH_TRIO |
Daniel Veillard | 7cf5e44 | 2001-09-10 20:16:32 +0000 | [diff] [blame] | 71 | #else |
72 | /** | ||||
73 | * WITHOUT_TRIO: | ||||
74 | * | ||||
75 | * defined if the trio support should not be configured in | ||||
76 | */ | ||||
77 | #define WITHOUT_TRIO | ||||
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 78 | #endif |
Daniel Veillard | acf7ff0 | 2001-10-29 20:21:47 +0000 | [diff] [blame] | 79 | #else /* VMS */ |
MST 2003 John Fleck | 941f40d | 2003-12-04 04:55:46 +0000 | [diff] [blame] | 80 | /** |
81 | * WITH_TRIO: | ||||
82 | * | ||||
83 | * defined if the trio support need to be configured in | ||||
84 | */ | ||||
Daniel Veillard | acf7ff0 | 2001-10-29 20:21:47 +0000 | [diff] [blame] | 85 | #define WITH_TRIO 1 |
86 | #endif /* VMS */ | ||||
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 87 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 88 | /** |
Daniel Veillard | 9d06d30 | 2002-01-22 18:15:52 +0000 | [diff] [blame] | 89 | * LIBXML_THREAD_ENABLED: |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 90 | * |
91 | * Whether the thread support is configured in | ||||
92 | */ | ||||
93 | #if @WITH_THREADS@ | ||||
William M. Brack | 38d452a | 2007-05-22 16:00:06 +0000 | [diff] [blame] | 94 | #if defined(_REENTRANT) || defined(__MT__) || \ |
95 | (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L)) | ||||
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 96 | #define LIBXML_THREAD_ENABLED |
97 | #endif | ||||
98 | #endif | ||||
99 | |||||
100 | /** | ||||
Daniel Veillard | 652327a | 2003-09-29 18:02:38 +0000 | [diff] [blame] | 101 | * LIBXML_TREE_ENABLED: |
102 | * | ||||
103 | * Whether the DOM like tree manipulation API support is configured in | ||||
104 | */ | ||||
105 | #if @WITH_TREE@ | ||||
106 | #define LIBXML_TREE_ENABLED | ||||
107 | #endif | ||||
108 | |||||
109 | /** | ||||
Daniel Veillard | a9cce9c | 2003-09-29 13:20:24 +0000 | [diff] [blame] | 110 | * LIBXML_OUTPUT_ENABLED: |
111 | * | ||||
112 | * Whether the serialization/saving support is configured in | ||||
113 | */ | ||||
114 | #if @WITH_OUTPUT@ | ||||
115 | #define LIBXML_OUTPUT_ENABLED | ||||
116 | #endif | ||||
117 | |||||
118 | /** | ||||
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 119 | * LIBXML_PUSH_ENABLED: |
120 | * | ||||
121 | * Whether the push parsing interfaces are configured in | ||||
122 | */ | ||||
123 | #if @WITH_PUSH@ | ||||
124 | #define LIBXML_PUSH_ENABLED | ||||
125 | #endif | ||||
126 | |||||
127 | /** | ||||
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 128 | * LIBXML_READER_ENABLED: |
129 | * | ||||
130 | * Whether the xmlReader parsing interface is configured in | ||||
131 | */ | ||||
132 | #if @WITH_READER@ | ||||
133 | #define LIBXML_READER_ENABLED | ||||
134 | #endif | ||||
135 | |||||
136 | /** | ||||
Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 137 | * LIBXML_PATTERN_ENABLED: |
138 | * | ||||
139 | * Whether the xmlPattern node selection interface is configured in | ||||
140 | */ | ||||
141 | #if @WITH_PATTERN@ | ||||
142 | #define LIBXML_PATTERN_ENABLED | ||||
143 | #endif | ||||
144 | |||||
145 | /** | ||||
Daniel Veillard | 1d211e2 | 2003-10-20 22:32:39 +0000 | [diff] [blame] | 146 | * LIBXML_WRITER_ENABLED: |
147 | * | ||||
148 | * Whether the xmlWriter saving interface is configured in | ||||
149 | */ | ||||
150 | #if @WITH_WRITER@ | ||||
151 | #define LIBXML_WRITER_ENABLED | ||||
152 | #endif | ||||
153 | |||||
154 | /** | ||||
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 155 | * LIBXML_SAX1_ENABLED: |
156 | * | ||||
157 | * Whether the older SAX1 interface is configured in | ||||
158 | */ | ||||
159 | #if @WITH_SAX1@ | ||||
160 | #define LIBXML_SAX1_ENABLED | ||||
161 | #endif | ||||
162 | |||||
163 | /** | ||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 164 | * LIBXML_FTP_ENABLED: |
165 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 166 | * Whether the FTP support is configured in |
167 | */ | ||||
168 | #if @WITH_FTP@ | ||||
169 | #define LIBXML_FTP_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 170 | #endif |
171 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 172 | /** |
173 | * LIBXML_HTTP_ENABLED: | ||||
174 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 175 | * Whether the HTTP support is configured in |
176 | */ | ||||
177 | #if @WITH_HTTP@ | ||||
178 | #define LIBXML_HTTP_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 179 | #endif |
180 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 181 | /** |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 182 | * LIBXML_VALID_ENABLED: |
183 | * | ||||
184 | * Whether the DTD validation support is configured in | ||||
185 | */ | ||||
186 | #if @WITH_VALID@ | ||||
187 | #define LIBXML_VALID_ENABLED | ||||
188 | #endif | ||||
189 | |||||
190 | /** | ||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 191 | * LIBXML_HTML_ENABLED: |
192 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 193 | * Whether the HTML support is configured in |
194 | */ | ||||
195 | #if @WITH_HTML@ | ||||
196 | #define LIBXML_HTML_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 197 | #endif |
198 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 199 | /** |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 200 | * LIBXML_LEGACY_ENABLED: |
201 | * | ||||
202 | * Whether the deprecated APIs are compiled in for compatibility | ||||
203 | */ | ||||
204 | #if @WITH_LEGACY@ | ||||
205 | #define LIBXML_LEGACY_ENABLED | ||||
206 | #endif | ||||
207 | |||||
208 | /** | ||||
Daniel Veillard | 044fc6b | 2002-03-04 17:09:44 +0000 | [diff] [blame] | 209 | * LIBXML_C14N_ENABLED: |
210 | * | ||||
211 | * Whether the Canonicalization support is configured in | ||||
212 | */ | ||||
213 | #if @WITH_C14N@ | ||||
214 | #define LIBXML_C14N_ENABLED | ||||
215 | #endif | ||||
216 | |||||
217 | /** | ||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 218 | * LIBXML_CATALOG_ENABLED: |
219 | * | ||||
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 220 | * Whether the Catalog support is configured in |
221 | */ | ||||
222 | #if @WITH_CATALOG@ | ||||
223 | #define LIBXML_CATALOG_ENABLED | ||||
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 224 | #endif |
225 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 226 | /** |
227 | * LIBXML_DOCB_ENABLED: | ||||
228 | * | ||||
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 229 | * Whether the SGML Docbook support is configured in |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 230 | */ |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 231 | #if @WITH_DOCB@ |
232 | #define LIBXML_DOCB_ENABLED | ||||
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 233 | #endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 234 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 235 | /** |
236 | * LIBXML_XPATH_ENABLED: | ||||
237 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 238 | * Whether XPath is configured in |
239 | */ | ||||
240 | #if @WITH_XPATH@ | ||||
241 | #define LIBXML_XPATH_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 242 | #endif |
243 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 244 | /** |
245 | * LIBXML_XPTR_ENABLED: | ||||
246 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 247 | * Whether XPointer is configured in |
248 | */ | ||||
249 | #if @WITH_XPTR@ | ||||
250 | #define LIBXML_XPTR_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 251 | #endif |
252 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 253 | /** |
254 | * LIBXML_XINCLUDE_ENABLED: | ||||
255 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 256 | * Whether XInclude is configured in |
257 | */ | ||||
258 | #if @WITH_XINCLUDE@ | ||||
259 | #define LIBXML_XINCLUDE_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 260 | #endif |
261 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 262 | /** |
263 | * LIBXML_ICONV_ENABLED: | ||||
264 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 265 | * Whether iconv support is available |
266 | */ | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 267 | #if @WITH_ICONV@ |
268 | #define LIBXML_ICONV_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 269 | #endif |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 270 | |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 271 | /** |
Giuseppe Iuculano | 48f7dcb | 2010-11-04 17:42:42 +0100 | [diff] [blame^] | 272 | * LIBXML_ICU_ENABLED: |
273 | * | ||||
274 | * Whether icu support is available | ||||
275 | */ | ||||
276 | #if @WITH_ICU@ | ||||
277 | #define LIBXML_ICU_ENABLED | ||||
278 | #endif | ||||
279 | |||||
280 | /** | ||||
Daniel Veillard | 01fc1a9 | 2003-07-30 15:12:01 +0000 | [diff] [blame] | 281 | * LIBXML_ISO8859X_ENABLED: |
282 | * | ||||
283 | * Whether ISO-8859-* support is made available in case iconv is not | ||||
284 | */ | ||||
285 | #if @WITH_ISO8859X@ | ||||
286 | #define LIBXML_ISO8859X_ENABLED | ||||
287 | #endif | ||||
288 | |||||
289 | /** | ||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 290 | * LIBXML_DEBUG_ENABLED: |
291 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 292 | * Whether Debugging module is configured in |
293 | */ | ||||
294 | #if @WITH_DEBUG@ | ||||
295 | #define LIBXML_DEBUG_ENABLED | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 296 | #endif |
297 | |||||
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 298 | /** |
299 | * DEBUG_MEMORY_LOCATION: | ||||
300 | * | ||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 301 | * Whether the memory debugging is configured in |
302 | */ | ||||
303 | #if @WITH_MEM_DEBUG@ | ||||
304 | #define DEBUG_MEMORY_LOCATION | ||||
305 | #endif | ||||
306 | |||||
Daniel Veillard | 5e2dace | 2001-07-18 19:30:27 +0000 | [diff] [blame] | 307 | /** |
Daniel Veillard | 22cdb84 | 2004-10-04 14:09:17 +0000 | [diff] [blame] | 308 | * LIBXML_DEBUG_RUNTIME: |
309 | * | ||||
310 | * Whether the runtime debugging is configured in | ||||
311 | */ | ||||
Kasimier T. Buchcik | d81ebd1 | 2005-12-14 17:14:35 +0000 | [diff] [blame] | 312 | #if @WITH_RUN_DEBUG@ |
Daniel Veillard | 22cdb84 | 2004-10-04 14:09:17 +0000 | [diff] [blame] | 313 | #define LIBXML_DEBUG_RUNTIME |
314 | #endif | ||||
315 | |||||
316 | /** | ||||
Daniel Veillard | 7a02cfe | 2003-09-25 12:18:34 +0000 | [diff] [blame] | 317 | * LIBXML_UNICODE_ENABLED: |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 318 | * |
319 | * Whether the Unicode related interfaces are compiled in | ||||
320 | */ | ||||
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 321 | #if @WITH_REGEXPS@ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 322 | #define LIBXML_UNICODE_ENABLED |
323 | #endif | ||||
324 | |||||
325 | /** | ||||
Daniel Veillard | 7a02cfe | 2003-09-25 12:18:34 +0000 | [diff] [blame] | 326 | * LIBXML_REGEXP_ENABLED: |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 327 | * |
328 | * Whether the regular expressions interfaces are compiled in | ||||
329 | */ | ||||
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 330 | #if @WITH_REGEXPS@ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 331 | #define LIBXML_REGEXP_ENABLED |
332 | #endif | ||||
333 | |||||
334 | /** | ||||
Daniel Veillard | 7a02cfe | 2003-09-25 12:18:34 +0000 | [diff] [blame] | 335 | * LIBXML_AUTOMATA_ENABLED: |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 336 | * |
337 | * Whether the automata interfaces are compiled in | ||||
338 | */ | ||||
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 339 | #if @WITH_REGEXPS@ |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 340 | #define LIBXML_AUTOMATA_ENABLED |
341 | #endif | ||||
342 | |||||
343 | /** | ||||
Daniel Veillard | 465a000 | 2005-08-22 12:07:04 +0000 | [diff] [blame] | 344 | * LIBXML_EXPR_ENABLED: |
345 | * | ||||
346 | * Whether the formal expressions interfaces are compiled in | ||||
347 | */ | ||||
348 | #if @WITH_SCHEMAS@ | ||||
349 | #define LIBXML_EXPR_ENABLED | ||||
350 | #endif | ||||
351 | |||||
352 | /** | ||||
Daniel Veillard | 7a02cfe | 2003-09-25 12:18:34 +0000 | [diff] [blame] | 353 | * LIBXML_SCHEMAS_ENABLED: |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 354 | * |
355 | * Whether the Schemas validation interfaces are compiled in | ||||
356 | */ | ||||
357 | #if @WITH_SCHEMAS@ | ||||
358 | #define LIBXML_SCHEMAS_ENABLED | ||||
359 | #endif | ||||
360 | |||||
361 | /** | ||||
Daniel Veillard | ed6c549 | 2005-07-23 15:00:22 +0000 | [diff] [blame] | 362 | * LIBXML_SCHEMATRON_ENABLED: |
363 | * | ||||
364 | * Whether the Schematron validation interfaces are compiled in | ||||
365 | */ | ||||
366 | #if @WITH_SCHEMATRON@ | ||||
367 | #define LIBXML_SCHEMATRON_ENABLED | ||||
368 | #endif | ||||
369 | |||||
370 | /** | ||||
Daniel Veillard | ce1648b | 2005-01-04 15:10:22 +0000 | [diff] [blame] | 371 | * LIBXML_MODULES_ENABLED: |
372 | * | ||||
373 | * Whether the module interfaces are compiled in | ||||
374 | */ | ||||
375 | #if @WITH_MODULES@ | ||||
376 | #define LIBXML_MODULES_ENABLED | ||||
Daniel Veillard | 5eee767 | 2005-08-22 21:22:27 +0000 | [diff] [blame] | 377 | /** |
378 | * LIBXML_MODULE_EXTENSION: | ||||
379 | * | ||||
380 | * the string suffix used by dynamic modules (usually shared libraries) | ||||
381 | */ | ||||
Daniel Veillard | ce1648b | 2005-01-04 15:10:22 +0000 | [diff] [blame] | 382 | #define LIBXML_MODULE_EXTENSION "@MODULE_EXTENSION@" |
383 | #endif | ||||
384 | |||||
385 | /** | ||||
Daniel Veillard | 75acfee | 2006-07-13 06:29:56 +0000 | [diff] [blame] | 386 | * LIBXML_ZLIB_ENABLED: |
387 | * | ||||
388 | * Whether the Zlib support is compiled in | ||||
389 | */ | ||||
390 | #if @WITH_ZLIB@ | ||||
391 | #define LIBXML_ZLIB_ENABLED | ||||
392 | #endif | ||||
393 | |||||
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 394 | #ifdef __GNUC__ |
395 | #ifdef HAVE_ANSIDECL_H | ||||
396 | #include <ansidecl.h> | ||||
397 | #endif | ||||
398 | |||||
Daniel Veillard | 75acfee | 2006-07-13 06:29:56 +0000 | [diff] [blame] | 399 | /** |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 400 | * ATTRIBUTE_UNUSED: |
401 | * | ||||
402 | * Macro used to signal to GCC unused function parameters | ||||
403 | */ | ||||
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 404 | |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 405 | #ifndef ATTRIBUTE_UNUSED |
William M. Brack | 30ce0dd | 2003-11-04 23:57:30 +0000 | [diff] [blame] | 406 | #define ATTRIBUTE_UNUSED __attribute__((unused)) |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 407 | #endif |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 408 | |
409 | /** | ||||
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 410 | * LIBXML_ATTR_ALLOC_SIZE: |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 411 | * |
412 | * Macro used to indicate to GCC this is an allocator function | ||||
413 | */ | ||||
414 | |||||
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 415 | #ifndef LIBXML_ATTR_ALLOC_SIZE |
Daniel Veillard | d4d4705 | 2009-01-18 17:26:02 +0000 | [diff] [blame] | 416 | # if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) |
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 417 | # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x))) |
Daniel Veillard | d4d4705 | 2009-01-18 17:26:02 +0000 | [diff] [blame] | 418 | # else |
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 419 | # define LIBXML_ATTR_ALLOC_SIZE(x) |
Daniel Veillard | d4d4705 | 2009-01-18 17:26:02 +0000 | [diff] [blame] | 420 | # endif |
421 | #else | ||||
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 422 | # define LIBXML_ATTR_ALLOC_SIZE(x) |
Daniel Veillard | d4d4705 | 2009-01-18 17:26:02 +0000 | [diff] [blame] | 423 | #endif |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 424 | |
425 | /** | ||||
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 426 | * LIBXML_ATTR_FORMAT: |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 427 | * |
428 | * Macro used to indicate to GCC the parameter are printf like | ||||
429 | */ | ||||
430 | |||||
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 431 | #ifndef LIBXML_ATTR_FORMAT |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 432 | # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))) |
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 433 | # define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args))) |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 434 | # else |
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 435 | # define LIBXML_ATTR_FORMAT(fmt,args) |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 436 | # endif |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 437 | #else |
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 438 | # define LIBXML_ATTR_FORMAT(fmt,args) |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 439 | #endif |
440 | |||||
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 441 | #else /* ! __GNUC__ */ |
442 | /** | ||||
443 | * ATTRIBUTE_UNUSED: | ||||
444 | * | ||||
445 | * Macro used to signal to GCC unused function parameters | ||||
446 | */ | ||||
447 | #define ATTRIBUTE_UNUSED | ||||
448 | /** | ||||
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 449 | * LIBXML_ATTR_ALLOC_SIZE: |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 450 | * |
451 | * Macro used to indicate to GCC this is an allocator function | ||||
452 | */ | ||||
Daniel Veillard | 57f71ae | 2009-09-09 18:57:26 +0200 | [diff] [blame] | 453 | #define LIBXML_ATTR_ALLOC_SIZE(x) |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 454 | /** |
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 455 | * LIBXML_ATTR_FORMAT: |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 456 | * |
457 | * Macro used to indicate to GCC the parameter are printf like | ||||
458 | */ | ||||
Daniel Veillard | f076f34 | 2009-04-15 09:20:25 +0000 | [diff] [blame] | 459 | #define LIBXML_ATTR_FORMAT(fmt,args) |
Daniel Veillard | f63085d | 2009-01-18 20:53:59 +0000 | [diff] [blame] | 460 | #endif /* __GNUC__ */ |
461 | |||||
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 462 | #ifdef __cplusplus |
463 | } | ||||
464 | #endif /* __cplusplus */ | ||||
465 | #endif | ||||
466 | |||||
467 |