|
1 /* |
|
2 * Summary: compile-time version informations |
|
3 * Description: compile-time version informations for the XML library |
|
4 * |
|
5 * Copy: See Copyright for the status of this software. |
|
6 * |
|
7 * Author: Daniel Veillard |
|
8 */ |
|
9 |
|
10 #ifndef __XML_VERSION_H__ |
|
11 #define __XML_VERSION_H__ |
|
12 |
|
13 #include <libxml/xmlexports.h> |
|
14 |
|
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 */ |
|
23 #ifndef LIBXML2_COMPILING_MSCCDEF |
|
24 XMLPUBFUN void XMLCALL xmlCheckVersion(int version); |
|
25 #endif /* LIBXML2_COMPILING_MSCCDEF */ |
|
26 |
|
27 /** |
|
28 * LIBXML_DOTTED_VERSION: |
|
29 * |
|
30 * the version string like "1.2.3" |
|
31 */ |
|
32 #define LIBXML_DOTTED_VERSION "2.6.23" |
|
33 |
|
34 /** |
|
35 * LIBXML_VERSION: |
|
36 * |
|
37 * the version number: 1.2.3 value is 1002003 |
|
38 */ |
|
39 #define LIBXML_VERSION 20623 |
|
40 |
|
41 /** |
|
42 * LIBXML_VERSION_STRING: |
|
43 * |
|
44 * the version number string, 1.2.3 value is "1002003" |
|
45 */ |
|
46 #define LIBXML_VERSION_STRING "20623" |
|
47 |
|
48 /** |
|
49 * LIBXML_VERSION_EXTRA: |
|
50 * |
|
51 * extra version information, used to show a CVS compilation |
|
52 */ |
|
53 #define LIBXML_VERSION_EXTRA "CVS2717" |
|
54 |
|
55 /** |
|
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 */ |
|
61 #define LIBXML_TEST_VERSION xmlCheckVersion(20623); |
|
62 |
|
63 #ifndef VMS |
|
64 #if 0 |
|
65 /** |
|
66 * WITH_TRIO: |
|
67 * |
|
68 * defined if the trio support need to be configured in |
|
69 */ |
|
70 #define WITH_TRIO |
|
71 #else |
|
72 /** |
|
73 * WITHOUT_TRIO: |
|
74 * |
|
75 * defined if the trio support should not be configured in |
|
76 */ |
|
77 #define WITHOUT_TRIO |
|
78 #endif |
|
79 #else /* VMS */ |
|
80 /** |
|
81 * WITH_TRIO: |
|
82 * |
|
83 * defined if the trio support need to be configured in |
|
84 */ |
|
85 #define WITH_TRIO 1 |
|
86 #endif /* VMS */ |
|
87 |
|
88 /** |
|
89 * LIBXML_THREAD_ENABLED: |
|
90 * |
|
91 * Whether the thread support is configured in |
|
92 */ |
|
93 #if 1 |
|
94 #if defined(_REENTRANT) || defined(__MT__) || (_POSIX_C_SOURCE - 0 >= 199506L) |
|
95 #define LIBXML_THREAD_ENABLED |
|
96 #endif |
|
97 #endif |
|
98 |
|
99 /** |
|
100 * LIBXML_TREE_ENABLED: |
|
101 * |
|
102 * Whether the DOM like tree manipulation API support is configured in |
|
103 */ |
|
104 #if 1 |
|
105 #define LIBXML_TREE_ENABLED |
|
106 #endif |
|
107 |
|
108 /** |
|
109 * LIBXML_OUTPUT_ENABLED: |
|
110 * |
|
111 * Whether the serialization/saving support is configured in |
|
112 */ |
|
113 #if 1 |
|
114 #define LIBXML_OUTPUT_ENABLED |
|
115 #endif |
|
116 |
|
117 /** |
|
118 * LIBXML_PUSH_ENABLED: |
|
119 * |
|
120 * Whether the push parsing interfaces are configured in |
|
121 */ |
|
122 #if 1 |
|
123 #define LIBXML_PUSH_ENABLED |
|
124 #endif |
|
125 |
|
126 /** |
|
127 * LIBXML_READER_ENABLED: |
|
128 * |
|
129 * Whether the xmlReader parsing interface is configured in |
|
130 */ |
|
131 #if 1 |
|
132 #define LIBXML_READER_ENABLED |
|
133 #endif |
|
134 |
|
135 /** |
|
136 * LIBXML_PATTERN_ENABLED: |
|
137 * |
|
138 * Whether the xmlPattern node selection interface is configured in |
|
139 */ |
|
140 #if 1 |
|
141 #define LIBXML_PATTERN_ENABLED |
|
142 #endif |
|
143 |
|
144 /** |
|
145 * LIBXML_WRITER_ENABLED: |
|
146 * |
|
147 * Whether the xmlWriter saving interface is configured in |
|
148 */ |
|
149 #if 1 |
|
150 #define LIBXML_WRITER_ENABLED |
|
151 #endif |
|
152 |
|
153 /** |
|
154 * LIBXML_SAX1_ENABLED: |
|
155 * |
|
156 * Whether the older SAX1 interface is configured in |
|
157 */ |
|
158 #if 1 |
|
159 #define LIBXML_SAX1_ENABLED |
|
160 #endif |
|
161 |
|
162 /** |
|
163 * LIBXML_FTP_ENABLED: |
|
164 * |
|
165 * Whether the FTP support is configured in |
|
166 */ |
|
167 #if 1 |
|
168 #define LIBXML_FTP_ENABLED |
|
169 #endif |
|
170 |
|
171 /** |
|
172 * LIBXML_HTTP_ENABLED: |
|
173 * |
|
174 * Whether the HTTP support is configured in |
|
175 */ |
|
176 #if 1 |
|
177 #define LIBXML_HTTP_ENABLED |
|
178 #endif |
|
179 |
|
180 /** |
|
181 * LIBXML_VALID_ENABLED: |
|
182 * |
|
183 * Whether the DTD validation support is configured in |
|
184 */ |
|
185 #if 1 |
|
186 #define LIBXML_VALID_ENABLED |
|
187 #endif |
|
188 |
|
189 /** |
|
190 * LIBXML_HTML_ENABLED: |
|
191 * |
|
192 * Whether the HTML support is configured in |
|
193 */ |
|
194 #if 1 |
|
195 #define LIBXML_HTML_ENABLED |
|
196 #endif |
|
197 |
|
198 /** |
|
199 * LIBXML_LEGACY_ENABLED: |
|
200 * |
|
201 * Whether the deprecated APIs are compiled in for compatibility |
|
202 */ |
|
203 #if 1 |
|
204 #define LIBXML_LEGACY_ENABLED |
|
205 #endif |
|
206 |
|
207 /** |
|
208 * LIBXML_C14N_ENABLED: |
|
209 * |
|
210 * Whether the Canonicalization support is configured in |
|
211 */ |
|
212 #if 1 |
|
213 #define LIBXML_C14N_ENABLED |
|
214 #endif |
|
215 |
|
216 /** |
|
217 * LIBXML_CATALOG_ENABLED: |
|
218 * |
|
219 * Whether the Catalog support is configured in |
|
220 */ |
|
221 #if 1 |
|
222 #define LIBXML_CATALOG_ENABLED |
|
223 #endif |
|
224 |
|
225 /** |
|
226 * LIBXML_DOCB_ENABLED: |
|
227 * |
|
228 * Whether the SGML Docbook support is configured in |
|
229 */ |
|
230 #if 1 |
|
231 #define LIBXML_DOCB_ENABLED |
|
232 #endif |
|
233 |
|
234 /** |
|
235 * LIBXML_XPATH_ENABLED: |
|
236 * |
|
237 * Whether XPath is configured in |
|
238 */ |
|
239 #if 1 |
|
240 #define LIBXML_XPATH_ENABLED |
|
241 #endif |
|
242 |
|
243 /** |
|
244 * LIBXML_XPTR_ENABLED: |
|
245 * |
|
246 * Whether XPointer is configured in |
|
247 */ |
|
248 #if 1 |
|
249 #define LIBXML_XPTR_ENABLED |
|
250 #endif |
|
251 |
|
252 /** |
|
253 * LIBXML_XINCLUDE_ENABLED: |
|
254 * |
|
255 * Whether XInclude is configured in |
|
256 */ |
|
257 #if 1 |
|
258 #define LIBXML_XINCLUDE_ENABLED |
|
259 #endif |
|
260 |
|
261 /** |
|
262 * LIBXML_ICONV_ENABLED: |
|
263 * |
|
264 * Whether iconv support is available |
|
265 * not including iconv support to avoid iconv header file inclusion |
|
266 */ |
|
267 #if 0 |
|
268 #define LIBXML_ICONV_ENABLED |
|
269 #endif |
|
270 |
|
271 /** |
|
272 * LIBXML_ISO8859X_ENABLED: |
|
273 * |
|
274 * Whether ISO-8859-* support is made available in case iconv is not |
|
275 */ |
|
276 #if 0 |
|
277 #define LIBXML_ISO8859X_ENABLED |
|
278 #endif |
|
279 |
|
280 /** |
|
281 * LIBXML_DEBUG_ENABLED: |
|
282 * |
|
283 * Whether Debugging module is configured in |
|
284 */ |
|
285 #if 1 |
|
286 #define LIBXML_DEBUG_ENABLED |
|
287 #endif |
|
288 |
|
289 /** |
|
290 * LIBXML_UNICODE_ENABLED: |
|
291 * |
|
292 * Whether the Unicode related interfaces are compiled in |
|
293 */ |
|
294 #if 1 |
|
295 #define LIBXML_UNICODE_ENABLED |
|
296 #endif |
|
297 |
|
298 /** |
|
299 * LIBXML_REGEXP_ENABLED: |
|
300 * |
|
301 * Whether the regular expressions interfaces are compiled in |
|
302 */ |
|
303 #if 1 |
|
304 #define LIBXML_REGEXP_ENABLED |
|
305 #endif |
|
306 |
|
307 /** |
|
308 * LIBXML_AUTOMATA_ENABLED: |
|
309 * |
|
310 * Whether the automata interfaces are compiled in |
|
311 */ |
|
312 #if 1 |
|
313 #define LIBXML_AUTOMATA_ENABLED |
|
314 #endif |
|
315 |
|
316 /** |
|
317 * LIBXML_EXPR_ENABLED: |
|
318 * |
|
319 * Whether the formal expressions interfaces are compiled in |
|
320 */ |
|
321 #if 1 |
|
322 #define LIBXML_EXPR_ENABLED |
|
323 #endif |
|
324 |
|
325 /** |
|
326 * LIBXML_SCHEMAS_ENABLED: |
|
327 * |
|
328 * Whether the Schemas validation interfaces are compiled in |
|
329 */ |
|
330 #if 1 |
|
331 #define LIBXML_SCHEMAS_ENABLED |
|
332 #endif |
|
333 |
|
334 /** |
|
335 * LIBXML_SCHEMATRON_ENABLED: |
|
336 * |
|
337 * Whether the Schematron validation interfaces are compiled in |
|
338 */ |
|
339 #if 1 |
|
340 #define LIBXML_SCHEMATRON_ENABLED |
|
341 #endif |
|
342 |
|
343 /** |
|
344 * LIBXML_MODULES_ENABLED: |
|
345 * |
|
346 * Whether the module interfaces are compiled in |
|
347 */ |
|
348 #if 1 |
|
349 #define LIBXML_MODULES_ENABLED |
|
350 /** |
|
351 * LIBXML_MODULE_EXTENSION: |
|
352 * |
|
353 * the string suffix used by dynamic modules (usually shared libraries) |
|
354 */ |
|
355 #define LIBXML_MODULE_EXTENSION ".dll" |
|
356 #endif |
|
357 |
|
358 /** |
|
359 * ATTRIBUTE_UNUSED: |
|
360 * |
|
361 * Macro used to signal to GCC unused function parameters |
|
362 */ |
|
363 #ifdef __GNUC__ |
|
364 #ifdef HAVE_ANSIDECL_H |
|
365 #include <ansidecl.h> |
|
366 #endif |
|
367 #ifndef ATTRIBUTE_UNUSED |
|
368 #define ATTRIBUTE_UNUSED __attribute__((unused)) |
|
369 #endif |
|
370 #else |
|
371 #define ATTRIBUTE_UNUSED |
|
372 #endif |
|
373 |
|
374 #ifdef __cplusplus |
|
375 } |
|
376 #endif /* __cplusplus */ |
|
377 #endif |
|
378 |
|
379 |