xmlversion.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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. #ifndef __XML_VERSION_H__
  10. #define __XML_VERSION_H__
  11. #include <libxml/xmlexports.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /*
  16. * use those to be sure nothing nasty will happen if
  17. * your library and includes mismatch
  18. */
  19. #ifndef LIBXML2_COMPILING_MSCCDEF
  20. XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
  21. #endif /* LIBXML2_COMPILING_MSCCDEF */
  22. /**
  23. * LIBXML_DOTTED_VERSION:
  24. *
  25. * the version string like "1.2.3"
  26. */
  27. #define LIBXML_DOTTED_VERSION "2.9.1"
  28. /**
  29. * LIBXML_VERSION:
  30. *
  31. * the version number: 1.2.3 value is 10203
  32. */
  33. #define LIBXML_VERSION 20901
  34. /**
  35. * LIBXML_VERSION_STRING:
  36. *
  37. * the version number string, 1.2.3 value is "10203"
  38. */
  39. #define LIBXML_VERSION_STRING "20901"
  40. /**
  41. * LIBXML_VERSION_EXTRA:
  42. *
  43. * extra version information, used to show a CVS compilation
  44. */
  45. #define LIBXML_VERSION_EXTRA "-GITv2.9.1"
  46. /**
  47. * LIBXML_TEST_VERSION:
  48. *
  49. * Macro to check that the libxml version in use is compatible with
  50. * the version the software has been compiled against
  51. */
  52. #define LIBXML_TEST_VERSION xmlCheckVersion(20901);
  53. #ifndef VMS
  54. #if 0
  55. /**
  56. * WITH_TRIO:
  57. *
  58. * defined if the trio support need to be configured in
  59. */
  60. #define WITH_TRIO
  61. #else
  62. /**
  63. * WITHOUT_TRIO:
  64. *
  65. * defined if the trio support should not be configured in
  66. */
  67. #define WITHOUT_TRIO
  68. #endif
  69. #else /* VMS */
  70. /**
  71. * WITH_TRIO:
  72. *
  73. * defined if the trio support need to be configured in
  74. */
  75. #define WITH_TRIO 1
  76. #endif /* VMS */
  77. /**
  78. * LIBXML_THREAD_ENABLED:
  79. *
  80. * Whether the thread support is configured in
  81. */
  82. #if 1
  83. #if defined(_REENTRANT) || defined(__MT__) || \
  84. (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE - 0 >= 199506L))
  85. #define LIBXML_THREAD_ENABLED
  86. #endif
  87. #endif
  88. /**
  89. * LIBXML_THREAD_ALLOC_ENABLED:
  90. *
  91. * Whether the allocation hooks are per-thread
  92. */
  93. #if 0
  94. #define LIBXML_THREAD_ALLOC_ENABLED
  95. #endif
  96. /**
  97. * LIBXML_TREE_ENABLED:
  98. *
  99. * Whether the DOM like tree manipulation API support is configured in
  100. */
  101. #if 1
  102. #define LIBXML_TREE_ENABLED
  103. #endif
  104. /**
  105. * LIBXML_OUTPUT_ENABLED:
  106. *
  107. * Whether the serialization/saving support is configured in
  108. */
  109. #if 1
  110. #define LIBXML_OUTPUT_ENABLED
  111. #endif
  112. /**
  113. * LIBXML_PUSH_ENABLED:
  114. *
  115. * Whether the push parsing interfaces are configured in
  116. */
  117. #if 1
  118. #define LIBXML_PUSH_ENABLED
  119. #endif
  120. /**
  121. * LIBXML_READER_ENABLED:
  122. *
  123. * Whether the xmlReader parsing interface is configured in
  124. */
  125. #if 1
  126. #define LIBXML_READER_ENABLED
  127. #endif
  128. /**
  129. * LIBXML_PATTERN_ENABLED:
  130. *
  131. * Whether the xmlPattern node selection interface is configured in
  132. */
  133. #if 1
  134. #define LIBXML_PATTERN_ENABLED
  135. #endif
  136. /**
  137. * LIBXML_WRITER_ENABLED:
  138. *
  139. * Whether the xmlWriter saving interface is configured in
  140. */
  141. #if 1
  142. #define LIBXML_WRITER_ENABLED
  143. #endif
  144. /**
  145. * LIBXML_SAX1_ENABLED:
  146. *
  147. * Whether the older SAX1 interface is configured in
  148. */
  149. #if 1
  150. #define LIBXML_SAX1_ENABLED
  151. #endif
  152. /**
  153. * LIBXML_FTP_ENABLED:
  154. *
  155. * Whether the FTP support is configured in
  156. */
  157. #if 1
  158. #define LIBXML_FTP_ENABLED
  159. #endif
  160. /**
  161. * LIBXML_HTTP_ENABLED:
  162. *
  163. * Whether the HTTP support is configured in
  164. */
  165. #if 1
  166. #define LIBXML_HTTP_ENABLED
  167. #endif
  168. /**
  169. * LIBXML_VALID_ENABLED:
  170. *
  171. * Whether the DTD validation support is configured in
  172. */
  173. #if 1
  174. #define LIBXML_VALID_ENABLED
  175. #endif
  176. /**
  177. * LIBXML_HTML_ENABLED:
  178. *
  179. * Whether the HTML support is configured in
  180. */
  181. #if 1
  182. #define LIBXML_HTML_ENABLED
  183. #endif
  184. /**
  185. * LIBXML_LEGACY_ENABLED:
  186. *
  187. * Whether the deprecated APIs are compiled in for compatibility
  188. */
  189. #if 1
  190. #define LIBXML_LEGACY_ENABLED
  191. #endif
  192. /**
  193. * LIBXML_C14N_ENABLED:
  194. *
  195. * Whether the Canonicalization support is configured in
  196. */
  197. #if 1
  198. #define LIBXML_C14N_ENABLED
  199. #endif
  200. /**
  201. * LIBXML_CATALOG_ENABLED:
  202. *
  203. * Whether the Catalog support is configured in
  204. */
  205. #if 1
  206. #define LIBXML_CATALOG_ENABLED
  207. #endif
  208. /**
  209. * LIBXML_DOCB_ENABLED:
  210. *
  211. * Whether the SGML Docbook support is configured in
  212. */
  213. #if 1
  214. #define LIBXML_DOCB_ENABLED
  215. #endif
  216. /**
  217. * LIBXML_XPATH_ENABLED:
  218. *
  219. * Whether XPath is configured in
  220. */
  221. #if 1
  222. #define LIBXML_XPATH_ENABLED
  223. #endif
  224. /**
  225. * LIBXML_XPTR_ENABLED:
  226. *
  227. * Whether XPointer is configured in
  228. */
  229. #if 1
  230. #define LIBXML_XPTR_ENABLED
  231. #endif
  232. /**
  233. * LIBXML_XINCLUDE_ENABLED:
  234. *
  235. * Whether XInclude is configured in
  236. */
  237. #if 1
  238. #define LIBXML_XINCLUDE_ENABLED
  239. #endif
  240. /**
  241. * LIBXML_ICONV_ENABLED:
  242. *
  243. * Whether iconv support is available
  244. */
  245. #if 0
  246. #define LIBXML_ICONV_ENABLED
  247. #endif
  248. /**
  249. * LIBXML_ICU_ENABLED:
  250. *
  251. * Whether icu support is available
  252. */
  253. #if 0
  254. #define LIBXML_ICU_ENABLED
  255. #endif
  256. /**
  257. * LIBXML_ISO8859X_ENABLED:
  258. *
  259. * Whether ISO-8859-* support is made available in case iconv is not
  260. */
  261. #if 1
  262. #define LIBXML_ISO8859X_ENABLED
  263. #endif
  264. /**
  265. * LIBXML_DEBUG_ENABLED:
  266. *
  267. * Whether Debugging module is configured in
  268. */
  269. #if 1
  270. #define LIBXML_DEBUG_ENABLED
  271. #endif
  272. /**
  273. * DEBUG_MEMORY_LOCATION:
  274. *
  275. * Whether the memory debugging is configured in
  276. */
  277. #if 0
  278. #define DEBUG_MEMORY_LOCATION
  279. #endif
  280. /**
  281. * LIBXML_DEBUG_RUNTIME:
  282. *
  283. * Whether the runtime debugging is configured in
  284. */
  285. #if 0
  286. #define LIBXML_DEBUG_RUNTIME
  287. #endif
  288. /**
  289. * LIBXML_UNICODE_ENABLED:
  290. *
  291. * Whether the Unicode related interfaces are compiled in
  292. */
  293. #if 1
  294. #define LIBXML_UNICODE_ENABLED
  295. #endif
  296. /**
  297. * LIBXML_REGEXP_ENABLED:
  298. *
  299. * Whether the regular expressions interfaces are compiled in
  300. */
  301. #if 1
  302. #define LIBXML_REGEXP_ENABLED
  303. #endif
  304. /**
  305. * LIBXML_AUTOMATA_ENABLED:
  306. *
  307. * Whether the automata interfaces are compiled in
  308. */
  309. #if 1
  310. #define LIBXML_AUTOMATA_ENABLED
  311. #endif
  312. /**
  313. * LIBXML_EXPR_ENABLED:
  314. *
  315. * Whether the formal expressions interfaces are compiled in
  316. */
  317. #if 1
  318. #define LIBXML_EXPR_ENABLED
  319. #endif
  320. /**
  321. * LIBXML_SCHEMAS_ENABLED:
  322. *
  323. * Whether the Schemas validation interfaces are compiled in
  324. */
  325. #if 1
  326. #define LIBXML_SCHEMAS_ENABLED
  327. #endif
  328. /**
  329. * LIBXML_SCHEMATRON_ENABLED:
  330. *
  331. * Whether the Schematron validation interfaces are compiled in
  332. */
  333. #if 1
  334. #define LIBXML_SCHEMATRON_ENABLED
  335. #endif
  336. /**
  337. * LIBXML_MODULES_ENABLED:
  338. *
  339. * Whether the module interfaces are compiled in
  340. */
  341. #if 1
  342. #define LIBXML_MODULES_ENABLED
  343. /**
  344. * LIBXML_MODULE_EXTENSION:
  345. *
  346. * the string suffix used by dynamic modules (usually shared libraries)
  347. */
  348. #define LIBXML_MODULE_EXTENSION ".dll"
  349. #endif
  350. /**
  351. * LIBXML_ZLIB_ENABLED:
  352. *
  353. * Whether the Zlib support is compiled in
  354. */
  355. #if 0
  356. #define LIBXML_ZLIB_ENABLED
  357. #endif
  358. /**
  359. * LIBXML_LZMA_ENABLED:
  360. *
  361. * Whether the Lzma support is compiled in
  362. */
  363. #if 0
  364. #define LIBXML_LZMA_ENABLED
  365. #endif
  366. #ifdef __GNUC__
  367. #ifdef HAVE_ANSIDECL_H
  368. #include <ansidecl.h>
  369. #endif
  370. /**
  371. * ATTRIBUTE_UNUSED:
  372. *
  373. * Macro used to signal to GCC unused function parameters
  374. */
  375. #ifndef ATTRIBUTE_UNUSED
  376. # if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
  377. # define ATTRIBUTE_UNUSED __attribute__((unused))
  378. # else
  379. # define ATTRIBUTE_UNUSED
  380. # endif
  381. #endif
  382. /**
  383. * LIBXML_ATTR_ALLOC_SIZE:
  384. *
  385. * Macro used to indicate to GCC this is an allocator function
  386. */
  387. #ifndef LIBXML_ATTR_ALLOC_SIZE
  388. # if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
  389. # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  390. # else
  391. # define LIBXML_ATTR_ALLOC_SIZE(x)
  392. # endif
  393. #else
  394. # define LIBXML_ATTR_ALLOC_SIZE(x)
  395. #endif
  396. /**
  397. * LIBXML_ATTR_FORMAT:
  398. *
  399. * Macro used to indicate to GCC the parameter are printf like
  400. */
  401. #ifndef LIBXML_ATTR_FORMAT
  402. # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
  403. # define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
  404. # else
  405. # define LIBXML_ATTR_FORMAT(fmt,args)
  406. # endif
  407. #else
  408. # define LIBXML_ATTR_FORMAT(fmt,args)
  409. #endif
  410. #else /* ! __GNUC__ */
  411. /**
  412. * ATTRIBUTE_UNUSED:
  413. *
  414. * Macro used to signal to GCC unused function parameters
  415. */
  416. #define ATTRIBUTE_UNUSED
  417. /**
  418. * LIBXML_ATTR_ALLOC_SIZE:
  419. *
  420. * Macro used to indicate to GCC this is an allocator function
  421. */
  422. #define LIBXML_ATTR_ALLOC_SIZE(x)
  423. /**
  424. * LIBXML_ATTR_FORMAT:
  425. *
  426. * Macro used to indicate to GCC the parameter are printf like
  427. */
  428. #define LIBXML_ATTR_FORMAT(fmt,args)
  429. #endif /* __GNUC__ */
  430. #ifdef __cplusplus
  431. }
  432. #endif /* __cplusplus */
  433. #endif