OLD | NEW |
1 /* | 1 /* |
2 * Summary: compile-time version informations | 2 * Summary: compile-time version informations |
3 * Description: compile-time version informations for the XML library | 3 * Description: compile-time version informations for the XML library |
4 * | 4 * |
5 * Copy: See Copyright for the status of this software. | 5 * Copy: See Copyright for the status of this software. |
6 * | 6 * |
7 * Author: Daniel Veillard | 7 * Author: Daniel Veillard |
8 */ | 8 */ |
9 | 9 |
10 #ifndef __XML_VERSION_H__ | 10 #ifndef __XML_VERSION_H__ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 * Whether the thread support is configured in | 91 * Whether the thread support is configured in |
92 */ | 92 */ |
93 #if @WITH_THREADS@ | 93 #if @WITH_THREADS@ |
94 #if defined(_REENTRANT) || defined(__MT__) || \ | 94 #if defined(_REENTRANT) || defined(__MT__) || \ |
95 (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L)) | 95 (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L)) |
96 #define LIBXML_THREAD_ENABLED | 96 #define LIBXML_THREAD_ENABLED |
97 #endif | 97 #endif |
98 #endif | 98 #endif |
99 | 99 |
100 /** | 100 /** |
| 101 * LIBXML_THREAD_ALLOC_ENABLED: |
| 102 * |
| 103 * Whether the allocation hooks are per-thread |
| 104 */ |
| 105 #if @WITH_THREAD_ALLOC@ |
| 106 #define LIBXML_THREAD_ALLOC_ENABLED |
| 107 #endif |
| 108 |
| 109 /** |
101 * LIBXML_TREE_ENABLED: | 110 * LIBXML_TREE_ENABLED: |
102 * | 111 * |
103 * Whether the DOM like tree manipulation API support is configured in | 112 * Whether the DOM like tree manipulation API support is configured in |
104 */ | 113 */ |
105 #if @WITH_TREE@ | 114 #if @WITH_TREE@ |
106 #define LIBXML_TREE_ENABLED | 115 #define LIBXML_TREE_ENABLED |
107 #endif | 116 #endif |
108 | 117 |
109 /** | 118 /** |
110 * LIBXML_OUTPUT_ENABLED: | 119 * LIBXML_OUTPUT_ENABLED: |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 | 393 |
385 /** | 394 /** |
386 * LIBXML_ZLIB_ENABLED: | 395 * LIBXML_ZLIB_ENABLED: |
387 * | 396 * |
388 * Whether the Zlib support is compiled in | 397 * Whether the Zlib support is compiled in |
389 */ | 398 */ |
390 #if @WITH_ZLIB@ | 399 #if @WITH_ZLIB@ |
391 #define LIBXML_ZLIB_ENABLED | 400 #define LIBXML_ZLIB_ENABLED |
392 #endif | 401 #endif |
393 | 402 |
| 403 /** |
| 404 * LIBXML_LZMA_ENABLED: |
| 405 * |
| 406 * Whether the Lzma support is compiled in |
| 407 */ |
| 408 #if @WITH_LZMA@ |
| 409 #define LIBXML_LZMA_ENABLED |
| 410 #endif |
| 411 |
394 #ifdef __GNUC__ | 412 #ifdef __GNUC__ |
395 #ifdef HAVE_ANSIDECL_H | 413 #ifdef HAVE_ANSIDECL_H |
396 #include <ansidecl.h> | 414 #include <ansidecl.h> |
397 #endif | 415 #endif |
398 | 416 |
399 /** | 417 /** |
400 * ATTRIBUTE_UNUSED: | 418 * ATTRIBUTE_UNUSED: |
401 * | 419 * |
402 * Macro used to signal to GCC unused function parameters | 420 * Macro used to signal to GCC unused function parameters |
403 */ | 421 */ |
404 | 422 |
405 #ifndef ATTRIBUTE_UNUSED | 423 #ifndef ATTRIBUTE_UNUSED |
406 #define ATTRIBUTE_UNUSED __attribute__((unused)) | 424 # if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7))) |
| 425 # define ATTRIBUTE_UNUSED __attribute__((unused)) |
| 426 # else |
| 427 # define ATTRIBUTE_UNUSED |
| 428 # endif |
407 #endif | 429 #endif |
408 | 430 |
409 /** | 431 /** |
410 * LIBXML_ATTR_ALLOC_SIZE: | 432 * LIBXML_ATTR_ALLOC_SIZE: |
411 * | 433 * |
412 * Macro used to indicate to GCC this is an allocator function | 434 * Macro used to indicate to GCC this is an allocator function |
413 */ | 435 */ |
414 | 436 |
415 #ifndef LIBXML_ATTR_ALLOC_SIZE | 437 #ifndef LIBXML_ATTR_ALLOC_SIZE |
416 # if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) | 438 # if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINO
R__ >= 3)))) |
417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x))) | 439 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x))) |
418 # else | 440 # else |
419 # define LIBXML_ATTR_ALLOC_SIZE(x) | 441 # define LIBXML_ATTR_ALLOC_SIZE(x) |
420 # endif | 442 # endif |
421 #else | 443 #else |
422 # define LIBXML_ATTR_ALLOC_SIZE(x) | 444 # define LIBXML_ATTR_ALLOC_SIZE(x) |
423 #endif | 445 #endif |
424 | 446 |
425 /** | 447 /** |
426 * LIBXML_ATTR_FORMAT: | 448 * LIBXML_ATTR_FORMAT: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 */ | 480 */ |
459 #define LIBXML_ATTR_FORMAT(fmt,args) | 481 #define LIBXML_ATTR_FORMAT(fmt,args) |
460 #endif /* __GNUC__ */ | 482 #endif /* __GNUC__ */ |
461 | 483 |
462 #ifdef __cplusplus | 484 #ifdef __cplusplus |
463 } | 485 } |
464 #endif /* __cplusplus */ | 486 #endif /* __cplusplus */ |
465 #endif | 487 #endif |
466 | 488 |
467 | 489 |
OLD | NEW |