xmlversion.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  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.7.6"
  28. /**
  29. * LIBXML_VERSION:
  30. *
  31. * the version number: 1.2.3 value is 10203
  32. */
  33. #define LIBXML_VERSION 20706
  34. /**
  35. * LIBXML_VERSION_STRING:
  36. *
  37. * the version number string, 1.2.3 value is "10203"
  38. */
  39. #define LIBXML_VERSION_STRING "20706"
  40. /**
  41. * LIBXML_VERSION_EXTRA:
  42. *
  43. * extra version information, used to show a CVS compilation
  44. */
  45. #define LIBXML_VERSION_EXTRA ""
  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(20706);
  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_TREE_ENABLED:
  90. *
  91. * Whether the DOM like tree manipulation API support is configured in
  92. */
  93. #if 1
  94. #define LIBXML_TREE_ENABLED
  95. #endif
  96. /**
  97. * LIBXML_OUTPUT_ENABLED:
  98. *
  99. * Whether the serialization/saving support is configured in
  100. */
  101. #if 1
  102. #define LIBXML_OUTPUT_ENABLED
  103. #endif
  104. /**
  105. * LIBXML_PUSH_ENABLED:
  106. *
  107. * Whether the push parsing interfaces are configured in
  108. */
  109. #if 1
  110. #define LIBXML_PUSH_ENABLED
  111. #endif
  112. /**
  113. * LIBXML_READER_ENABLED:
  114. *
  115. * Whether the xmlReader parsing interface is configured in
  116. */
  117. #if 1
  118. #define LIBXML_READER_ENABLED
  119. #endif
  120. /**
  121. * LIBXML_PATTERN_ENABLED:
  122. *
  123. * Whether the xmlPattern node selection interface is configured in
  124. */
  125. #if 1
  126. #define LIBXML_PATTERN_ENABLED
  127. #endif
  128. /**
  129. * LIBXML_WRITER_ENABLED:
  130. *
  131. * Whether the xmlWriter saving interface is configured in
  132. */
  133. #if 1
  134. #define LIBXML_WRITER_ENABLED
  135. #endif
  136. /**
  137. * LIBXML_SAX1_ENABLED:
  138. *
  139. * Whether the older SAX1 interface is configured in
  140. */
  141. #if 1
  142. #define LIBXML_SAX1_ENABLED
  143. #endif
  144. /**
  145. * LIBXML_FTP_ENABLED:
  146. *
  147. * Whether the FTP support is configured in
  148. */
  149. #if 1
  150. #define LIBXML_FTP_ENABLED
  151. #endif
  152. /**
  153. * LIBXML_HTTP_ENABLED:
  154. *
  155. * Whether the HTTP support is configured in
  156. */
  157. #if 1
  158. #define LIBXML_HTTP_ENABLED
  159. #endif
  160. /**
  161. * LIBXML_VALID_ENABLED:
  162. *
  163. * Whether the DTD validation support is configured in
  164. */
  165. #if 1
  166. #define LIBXML_VALID_ENABLED
  167. #endif
  168. /**
  169. * LIBXML_HTML_ENABLED:
  170. *
  171. * Whether the HTML support is configured in
  172. */
  173. #if 1
  174. #define LIBXML_HTML_ENABLED
  175. #endif
  176. /**
  177. * LIBXML_LEGACY_ENABLED:
  178. *
  179. * Whether the deprecated APIs are compiled in for compatibility
  180. */
  181. #if 1
  182. #define LIBXML_LEGACY_ENABLED
  183. #endif
  184. /**
  185. * LIBXML_C14N_ENABLED:
  186. *
  187. * Whether the Canonicalization support is configured in
  188. */
  189. #if 1
  190. #define LIBXML_C14N_ENABLED
  191. #endif
  192. /**
  193. * LIBXML_CATALOG_ENABLED:
  194. *
  195. * Whether the Catalog support is configured in
  196. */
  197. #if 1
  198. #define LIBXML_CATALOG_ENABLED
  199. #endif
  200. /**
  201. * LIBXML_DOCB_ENABLED:
  202. *
  203. * Whether the SGML Docbook support is configured in
  204. */
  205. #if 1
  206. #define LIBXML_DOCB_ENABLED
  207. #endif
  208. /**
  209. * LIBXML_XPATH_ENABLED:
  210. *
  211. * Whether XPath is configured in
  212. */
  213. #if 1
  214. #define LIBXML_XPATH_ENABLED
  215. #endif
  216. /**
  217. * LIBXML_XPTR_ENABLED:
  218. *
  219. * Whether XPointer is configured in
  220. */
  221. #if 1
  222. #define LIBXML_XPTR_ENABLED
  223. #endif
  224. /**
  225. * LIBXML_XINCLUDE_ENABLED:
  226. *
  227. * Whether XInclude is configured in
  228. */
  229. #if 1
  230. #define LIBXML_XINCLUDE_ENABLED
  231. #endif
  232. /**
  233. * LIBXML_ICONV_ENABLED:
  234. *
  235. * Whether iconv support is available
  236. */
  237. #if 0
  238. #define LIBXML_ICONV_ENABLED
  239. #endif
  240. /**
  241. * LIBXML_ISO8859X_ENABLED:
  242. *
  243. * Whether ISO-8859-* support is made available in case iconv is not
  244. */
  245. #if 1
  246. #define LIBXML_ISO8859X_ENABLED
  247. #endif
  248. /**
  249. * LIBXML_DEBUG_ENABLED:
  250. *
  251. * Whether Debugging module is configured in
  252. */
  253. #if 1
  254. #define LIBXML_DEBUG_ENABLED
  255. #endif
  256. /**
  257. * DEBUG_MEMORY_LOCATION:
  258. *
  259. * Whether the memory debugging is configured in
  260. */
  261. #if 0
  262. #define DEBUG_MEMORY_LOCATION
  263. #endif
  264. /**
  265. * LIBXML_DEBUG_RUNTIME:
  266. *
  267. * Whether the runtime debugging is configured in
  268. */
  269. #if 0
  270. #define LIBXML_DEBUG_RUNTIME
  271. #endif
  272. /**
  273. * LIBXML_UNICODE_ENABLED:
  274. *
  275. * Whether the Unicode related interfaces are compiled in
  276. */
  277. #if 1
  278. #define LIBXML_UNICODE_ENABLED
  279. #endif
  280. /**
  281. * LIBXML_REGEXP_ENABLED:
  282. *
  283. * Whether the regular expressions interfaces are compiled in
  284. */
  285. #if 1
  286. #define LIBXML_REGEXP_ENABLED
  287. #endif
  288. /**
  289. * LIBXML_AUTOMATA_ENABLED:
  290. *
  291. * Whether the automata interfaces are compiled in
  292. */
  293. #if 1
  294. #define LIBXML_AUTOMATA_ENABLED
  295. #endif
  296. /**
  297. * LIBXML_EXPR_ENABLED:
  298. *
  299. * Whether the formal expressions interfaces are compiled in
  300. */
  301. #if 1
  302. #define LIBXML_EXPR_ENABLED
  303. #endif
  304. /**
  305. * LIBXML_SCHEMAS_ENABLED:
  306. *
  307. * Whether the Schemas validation interfaces are compiled in
  308. */
  309. #if 1
  310. #define LIBXML_SCHEMAS_ENABLED
  311. #endif
  312. /**
  313. * LIBXML_SCHEMATRON_ENABLED:
  314. *
  315. * Whether the Schematron validation interfaces are compiled in
  316. */
  317. #if 1
  318. #define LIBXML_SCHEMATRON_ENABLED
  319. #endif
  320. /**
  321. * LIBXML_MODULES_ENABLED:
  322. *
  323. * Whether the module interfaces are compiled in
  324. */
  325. #if 0
  326. #define LIBXML_MODULES_ENABLED
  327. /**
  328. * LIBXML_MODULE_EXTENSION:
  329. *
  330. * the string suffix used by dynamic modules (usually shared libraries)
  331. */
  332. #define LIBXML_MODULE_EXTENSION ""
  333. #endif
  334. /**
  335. * LIBXML_ZLIB_ENABLED:
  336. *
  337. * Whether the Zlib support is compiled in
  338. */
  339. #if 0
  340. #define LIBXML_ZLIB_ENABLED
  341. #endif
  342. #ifdef __GNUC__
  343. #ifdef HAVE_ANSIDECL_H
  344. #include <ansidecl.h>
  345. #endif
  346. /**
  347. * ATTRIBUTE_UNUSED:
  348. *
  349. * Macro used to signal to GCC unused function parameters
  350. */
  351. #ifndef ATTRIBUTE_UNUSED
  352. #define ATTRIBUTE_UNUSED __attribute__((unused))
  353. #endif
  354. /**
  355. * LIBXML_ATTR_ALLOC_SIZE:
  356. *
  357. * Macro used to indicate to GCC this is an allocator function
  358. */
  359. #ifndef LIBXML_ATTR_ALLOC_SIZE
  360. # if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
  361. # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  362. # else
  363. # define LIBXML_ATTR_ALLOC_SIZE(x)
  364. # endif
  365. #else
  366. # define LIBXML_ATTR_ALLOC_SIZE(x)
  367. #endif
  368. /**
  369. * LIBXML_ATTR_FORMAT:
  370. *
  371. * Macro used to indicate to GCC the parameter are printf like
  372. */
  373. #ifndef LIBXML_ATTR_FORMAT
  374. # if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
  375. # define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
  376. # else
  377. # define LIBXML_ATTR_FORMAT(fmt,args)
  378. # endif
  379. #else
  380. # define LIBXML_ATTR_FORMAT(fmt,args)
  381. #endif
  382. #else /* ! __GNUC__ */
  383. /**
  384. * ATTRIBUTE_UNUSED:
  385. *
  386. * Macro used to signal to GCC unused function parameters
  387. */
  388. #define ATTRIBUTE_UNUSED
  389. /**
  390. * LIBXML_ATTR_ALLOC_SIZE:
  391. *
  392. * Macro used to indicate to GCC this is an allocator function
  393. */
  394. #define LIBXML_ATTR_ALLOC_SIZE(x)
  395. /**
  396. * LIBXML_ATTR_FORMAT:
  397. *
  398. * Macro used to indicate to GCC the parameter are printf like
  399. */
  400. #define LIBXML_ATTR_FORMAT(fmt,args)
  401. #endif /* __GNUC__ */
  402. #ifdef __cplusplus
  403. }
  404. #endif /* __cplusplus */
  405. #endif