Path: blob/master/libs/xml2/include/libxml/xmlversion.h
4394 views
/*1* Summary: compile-time version information2* Description: compile-time version information for the XML library3*4* Copy: See Copyright for the status of this software.5*6* Author: Daniel Veillard7*/89#ifndef __XML_VERSION_H__10#define __XML_VERSION_H__1112#include <libxml/xmlexports.h>1314#ifdef __cplusplus15extern "C" {16#endif1718/*19* use those to be sure nothing nasty will happen if20* your library and includes mismatch21*/22#ifndef LIBXML2_COMPILING_MSCCDEF23XMLPUBFUN void xmlCheckVersion(int version);24#endif /* LIBXML2_COMPILING_MSCCDEF */2526/**27* LIBXML_DOTTED_VERSION:28*29* the version string like "1.2.3"30*/31#define LIBXML_DOTTED_VERSION "2.12.10"3233/**34* LIBXML_VERSION:35*36* the version number: 1.2.3 value is 1020337*/38#define LIBXML_VERSION 212103940/**41* LIBXML_VERSION_STRING:42*43* the version number string, 1.2.3 value is "10203"44*/45#define LIBXML_VERSION_STRING "21210"4647/**48* LIBXML_VERSION_EXTRA:49*50* extra version information, used to show a git commit description51*/52#define LIBXML_VERSION_EXTRA ""5354/**55* LIBXML_TEST_VERSION:56*57* Macro to check that the libxml version in use is compatible with58* the version the software has been compiled against59*/60#define LIBXML_TEST_VERSION xmlCheckVersion(21210);6162#ifndef VMS63#if 064/**65* WITH_TRIO:66*67* defined if the trio support need to be configured in68*/69#define WITH_TRIO70#else71/**72* WITHOUT_TRIO:73*74* defined if the trio support should not be configured in75*/76#define WITHOUT_TRIO77#endif78#else /* VMS */79/**80* WITH_TRIO:81*82* defined if the trio support need to be configured in83*/84#define WITH_TRIO 185#endif /* VMS */8687/**88* LIBXML_THREAD_ENABLED:89*90* Whether the thread support is configured in91*/92#if 193#define LIBXML_THREAD_ENABLED94#endif9596/**97* LIBXML_THREAD_ALLOC_ENABLED:98*99* Whether the allocation hooks are per-thread100*/101#if 0102#define LIBXML_THREAD_ALLOC_ENABLED103#endif104105/**106* LIBXML_TREE_ENABLED:107*108* Whether the DOM like tree manipulation API support is configured in109*/110#if 1111#define LIBXML_TREE_ENABLED112#endif113114/**115* LIBXML_OUTPUT_ENABLED:116*117* Whether the serialization/saving support is configured in118*/119#if 1120#define LIBXML_OUTPUT_ENABLED121#endif122123/**124* LIBXML_PUSH_ENABLED:125*126* Whether the push parsing interfaces are configured in127*/128#if 1129#define LIBXML_PUSH_ENABLED130#endif131132/**133* LIBXML_READER_ENABLED:134*135* Whether the xmlReader parsing interface is configured in136*/137#if 1138#define LIBXML_READER_ENABLED139#endif140141/**142* LIBXML_PATTERN_ENABLED:143*144* Whether the xmlPattern node selection interface is configured in145*/146#if 1147#define LIBXML_PATTERN_ENABLED148#endif149150/**151* LIBXML_WRITER_ENABLED:152*153* Whether the xmlWriter saving interface is configured in154*/155#if 1156#define LIBXML_WRITER_ENABLED157#endif158159/**160* LIBXML_SAX1_ENABLED:161*162* Whether the older SAX1 interface is configured in163*/164#if 1165#define LIBXML_SAX1_ENABLED166#endif167168/**169* LIBXML_FTP_ENABLED:170*171* Whether the FTP support is configured in172*/173#if 0174#define LIBXML_FTP_ENABLED175#endif176177/**178* LIBXML_HTTP_ENABLED:179*180* Whether the HTTP support is configured in181*/182#if 0183#define LIBXML_HTTP_ENABLED184#endif185186/**187* LIBXML_VALID_ENABLED:188*189* Whether the DTD validation support is configured in190*/191#if 1192#define LIBXML_VALID_ENABLED193#endif194195/**196* LIBXML_HTML_ENABLED:197*198* Whether the HTML support is configured in199*/200#if 1201#define LIBXML_HTML_ENABLED202#endif203204/**205* LIBXML_LEGACY_ENABLED:206*207* Whether the deprecated APIs are compiled in for compatibility208*/209#if 0210#define LIBXML_LEGACY_ENABLED211#endif212213/**214* LIBXML_C14N_ENABLED:215*216* Whether the Canonicalization support is configured in217*/218#if 1219#define LIBXML_C14N_ENABLED220#endif221222/**223* LIBXML_CATALOG_ENABLED:224*225* Whether the Catalog support is configured in226*/227#if 1228#define LIBXML_CATALOG_ENABLED229#endif230231/**232* LIBXML_XPATH_ENABLED:233*234* Whether XPath is configured in235*/236#if 1237#define LIBXML_XPATH_ENABLED238#endif239240/**241* LIBXML_XPTR_ENABLED:242*243* Whether XPointer is configured in244*/245#if 1246#define LIBXML_XPTR_ENABLED247#endif248249/**250* LIBXML_XPTR_LOCS_ENABLED:251*252* Whether support for XPointer locations is configured in253*/254#if 0255#define LIBXML_XPTR_LOCS_ENABLED256#endif257258/**259* LIBXML_XINCLUDE_ENABLED:260*261* Whether XInclude is configured in262*/263#if 1264#define LIBXML_XINCLUDE_ENABLED265#endif266267/**268* LIBXML_ICONV_ENABLED:269*270* Whether iconv support is available271*/272#if 0273#define LIBXML_ICONV_ENABLED274#endif275276/**277* LIBXML_ICU_ENABLED:278*279* Whether icu support is available280*/281#if 0282#define LIBXML_ICU_ENABLED283#endif284285/**286* LIBXML_ISO8859X_ENABLED:287*288* Whether ISO-8859-* support is made available in case iconv is not289*/290#if 1291#define LIBXML_ISO8859X_ENABLED292#endif293294/**295* LIBXML_DEBUG_ENABLED:296*297* Whether Debugging module is configured in298*/299#if 1300#define LIBXML_DEBUG_ENABLED301#endif302303/**304* DEBUG_MEMORY_LOCATION:305*306* Whether the memory debugging is configured in307*/308#if 0309#define DEBUG_MEMORY_LOCATION310#endif311312/**313* LIBXML_DEBUG_RUNTIME:314*315* Removed316*/317#if 0318#define LIBXML_DEBUG_RUNTIME319#endif320321/**322* LIBXML_UNICODE_ENABLED:323*324* Whether the Unicode related interfaces are compiled in325*/326#if 1327#define LIBXML_UNICODE_ENABLED328#endif329330/**331* LIBXML_REGEXP_ENABLED:332*333* Whether the regular expressions interfaces are compiled in334*/335#if 1336#define LIBXML_REGEXP_ENABLED337#endif338339/**340* LIBXML_AUTOMATA_ENABLED:341*342* Whether the automata interfaces are compiled in343*/344#if 1345#define LIBXML_AUTOMATA_ENABLED346#endif347348/**349* LIBXML_EXPR_ENABLED:350*351* Whether the formal expressions interfaces are compiled in352*353* This code is unused and disabled unconditionally for now.354*/355#if 0356#define LIBXML_EXPR_ENABLED357#endif358359/**360* LIBXML_SCHEMAS_ENABLED:361*362* Whether the Schemas validation interfaces are compiled in363*/364#if 1365#define LIBXML_SCHEMAS_ENABLED366#endif367368/**369* LIBXML_SCHEMATRON_ENABLED:370*371* Whether the Schematron validation interfaces are compiled in372*/373#if 1374#define LIBXML_SCHEMATRON_ENABLED375#endif376377/**378* LIBXML_MODULES_ENABLED:379*380* Whether the module interfaces are compiled in381*/382#if 0383#define LIBXML_MODULES_ENABLED384/**385* LIBXML_MODULE_EXTENSION:386*387* the string suffix used by dynamic modules (usually shared libraries)388*/389#define LIBXML_MODULE_EXTENSION ".dll"390#endif391392/**393* LIBXML_ZLIB_ENABLED:394*395* Whether the Zlib support is compiled in396*/397#if 0398#define LIBXML_ZLIB_ENABLED399#endif400401/**402* LIBXML_LZMA_ENABLED:403*404* Whether the Lzma support is compiled in405*/406#if 0407#define LIBXML_LZMA_ENABLED408#endif409410#ifdef __GNUC__411/** DOC_DISABLE */412413#ifndef ATTRIBUTE_UNUSED414# if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))415# define ATTRIBUTE_UNUSED __attribute__((unused))416# else417# define ATTRIBUTE_UNUSED418# endif419#endif420421#ifndef LIBXML_ATTR_ALLOC_SIZE422# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))423# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))424# else425# define LIBXML_ATTR_ALLOC_SIZE(x)426# endif427#else428# define LIBXML_ATTR_ALLOC_SIZE(x)429#endif430431#ifndef LIBXML_ATTR_FORMAT432# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))433# define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))434# else435# define LIBXML_ATTR_FORMAT(fmt,args)436# endif437#else438# define LIBXML_ATTR_FORMAT(fmt,args)439#endif440441#ifndef XML_DEPRECATED442# if defined (IN_LIBXML) || (__GNUC__ * 100 + __GNUC_MINOR__ < 301)443# define XML_DEPRECATED444/* Available since at least GCC 3.1 */445# else446# define XML_DEPRECATED __attribute__((deprecated))447# endif448#endif449450#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 406)451#if defined(__clang__) || (__GNUC__ * 100 + __GNUC_MINOR__ >= 800)452#define XML_IGNORE_FPTR_CAST_WARNINGS \453_Pragma("GCC diagnostic push") \454_Pragma("GCC diagnostic ignored \"-Wpedantic\"") \455_Pragma("GCC diagnostic ignored \"-Wcast-function-type\"")456#else457#define XML_IGNORE_FPTR_CAST_WARNINGS \458_Pragma("GCC diagnostic push") \459_Pragma("GCC diagnostic ignored \"-Wpedantic\"")460#endif461#define XML_POP_WARNINGS \462_Pragma("GCC diagnostic pop")463#else464#define XML_IGNORE_FPTR_CAST_WARNINGS465#define XML_POP_WARNINGS466#endif467468#else /* ! __GNUC__ */469#define ATTRIBUTE_UNUSED470#define LIBXML_ATTR_ALLOC_SIZE(x)471#define LIBXML_ATTR_FORMAT(fmt,args)472#ifndef XML_DEPRECATED473# if defined (IN_LIBXML) || !defined (_MSC_VER)474# define XML_DEPRECATED475/* Available since Visual Studio 2005 */476# elif defined (_MSC_VER) && (_MSC_VER >= 1400)477# define XML_DEPRECATED __declspec(deprecated)478# endif479#endif480#if defined (_MSC_VER) && (_MSC_VER >= 1400)481# define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))482#else483# define XML_IGNORE_FPTR_CAST_WARNINGS484#endif485#ifndef XML_POP_WARNINGS486# if defined (_MSC_VER) && (_MSC_VER >= 1400)487# define XML_POP_WARNINGS __pragma(warning(pop))488# else489# define XML_POP_WARNINGS490# endif491#endif492#endif /* __GNUC__ */493494#define XML_NO_ATTR495496#ifdef LIBXML_THREAD_ENABLED497#define XML_DECLARE_GLOBAL(name, type, attrs) \498attrs XMLPUBFUN type *__##name(void);499#define XML_GLOBAL_MACRO(name) (*__##name())500#else501#define XML_DECLARE_GLOBAL(name, type, attrs) \502attrs XMLPUBVAR type name;503#endif504505#ifdef __cplusplus506}507#endif /* __cplusplus */508#endif509510511