2001-02-23 17:55:21 +00:00
/*
2003-11-18 20:56:51 +00:00
* Summary : compile - time version informations
* Description : compile - time version informations for the XML library
2001-02-23 17:55:21 +00:00
*
2003-11-18 20:56:51 +00:00
* Copy : See Copyright for the status of this software .
2001-02-23 17:55:21 +00:00
*
2003-11-18 20:56:51 +00:00
* Author : Daniel Veillard
2001-02-23 17:55:21 +00:00
*/
# ifndef __XML_VERSION_H__
# define __XML_VERSION_H__
2003-08-25 09:15:36 +00:00
# include <libxml/xmlexports.h>
2003-08-25 09:05:12 +00:00
2001-02-23 17:55:21 +00:00
# ifdef __cplusplus
extern " C " {
# endif
/*
* use those to be sure nothing nasty will happen if
* your library and includes mismatch
*/
2001-04-16 17:46:18 +00:00
# ifndef LIBXML2_COMPILING_MSCCDEF
2003-08-25 09:05:12 +00:00
XMLPUBFUN void XMLCALL xmlCheckVersion ( int version ) ;
2001-04-16 17:46:18 +00:00
# endif /* LIBXML2_COMPILING_MSCCDEF */
2001-07-18 19:30:27 +00:00
/**
* LIBXML_DOTTED_VERSION :
*
* the version string like " 1.2.3 "
*/
2001-02-23 17:55:21 +00:00
# define LIBXML_DOTTED_VERSION "@VERSION@"
2001-07-18 19:30:27 +00:00
/**
* LIBXML_VERSION :
*
2006-10-11 21:12:10 +00:00
* the version number : 1.2 .3 value is 10203
2001-07-18 19:30:27 +00:00
*/
2001-02-23 17:55:21 +00:00
# define LIBXML_VERSION @LIBXML_VERSION_NUMBER@
2001-07-18 19:30:27 +00:00
/**
* LIBXML_VERSION_STRING :
*
2006-10-11 21:12:10 +00:00
* the version number string , 1.2 .3 value is " 10203 "
2001-07-18 19:30:27 +00:00
*/
2001-02-23 17:55:21 +00:00
# define LIBXML_VERSION_STRING "@LIBXML_VERSION_NUMBER@"
2001-07-18 19:30:27 +00:00
2004-08-18 21:08:46 +00:00
/**
* LIBXML_VERSION_EXTRA :
*
* extra version information , used to show a CVS compilation
*/
# define LIBXML_VERSION_EXTRA "@LIBXML_VERSION_EXTRA@"
2001-07-18 19:30:27 +00:00
/**
* LIBXML_TEST_VERSION :
*
* Macro to check that the libxml version in use is compatible with
* the version the software has been compiled against
*/
2001-02-23 17:55:21 +00:00
# define LIBXML_TEST_VERSION xmlCheckVersion(@LIBXML_VERSION_NUMBER@);
2001-10-29 20:21:47 +00:00
# ifndef VMS
2001-09-10 20:16:32 +00:00
# if @WITH_TRIO@
2001-05-19 14:59:49 +00:00
/**
* WITH_TRIO :
*
2001-09-10 20:16:32 +00:00
* defined if the trio support need to be configured in
2001-03-27 12:47:33 +00:00
*/
# define WITH_TRIO
2001-09-10 20:16:32 +00:00
# else
/**
* WITHOUT_TRIO :
*
* defined if the trio support should not be configured in
*/
# define WITHOUT_TRIO
2001-03-27 12:47:33 +00:00
# endif
2001-10-29 20:21:47 +00:00
# else /* VMS */
2003-12-04 04:55:46 +00:00
/**
* WITH_TRIO :
*
* defined if the trio support need to be configured in
*/
2001-10-29 20:21:47 +00:00
# define WITH_TRIO 1
# endif /* VMS */
2001-03-27 12:47:33 +00:00
2001-10-12 17:29:10 +00:00
/**
2002-01-22 18:15:52 +00:00
* LIBXML_THREAD_ENABLED :
2001-10-12 17:29:10 +00:00
*
* Whether the thread support is configured in
*/
# if @WITH_THREADS@
2007-05-22 16:00:06 +00:00
# if defined(_REENTRANT) || defined(__MT__) || \
( defined ( _POSIX_C_SOURCE ) & & ( _POSIX_C_SOURCE - 0 > = 199506L ) )
2001-10-12 17:29:10 +00:00
# define LIBXML_THREAD_ENABLED
# endif
# endif
2012-10-29 13:41:55 +11:00
/**
* LIBXML_THREAD_ALLOC_ENABLED :
*
* Whether the allocation hooks are per - thread
*/
# if @WITH_THREAD_ALLOC@
# define LIBXML_THREAD_ALLOC_ENABLED
# endif
2003-09-29 18:02:38 +00:00
/**
* LIBXML_TREE_ENABLED :
*
* Whether the DOM like tree manipulation API support is configured in
*/
# if @WITH_TREE@
# define LIBXML_TREE_ENABLED
# endif
2003-09-29 13:20:24 +00:00
/**
* LIBXML_OUTPUT_ENABLED :
*
* Whether the serialization / saving support is configured in
*/
# if @WITH_OUTPUT@
# define LIBXML_OUTPUT_ENABLED
# endif
2003-09-30 12:36:01 +00:00
/**
* LIBXML_PUSH_ENABLED :
*
* Whether the push parsing interfaces are configured in
*/
# if @WITH_PUSH@
# define LIBXML_PUSH_ENABLED
# endif
2003-09-30 00:43:48 +00:00
/**
* LIBXML_READER_ENABLED :
*
* Whether the xmlReader parsing interface is configured in
*/
# if @WITH_READER@
# define LIBXML_READER_ENABLED
# endif
2003-12-02 22:32:15 +00:00
/**
* LIBXML_PATTERN_ENABLED :
*
* Whether the xmlPattern node selection interface is configured in
*/
# if @WITH_PATTERN@
# define LIBXML_PATTERN_ENABLED
# endif
2003-10-20 22:32:39 +00:00
/**
* LIBXML_WRITER_ENABLED :
*
* Whether the xmlWriter saving interface is configured in
*/
# if @WITH_WRITER@
# define LIBXML_WRITER_ENABLED
# endif
2003-09-30 00:43:48 +00:00
/**
* LIBXML_SAX1_ENABLED :
*
* Whether the older SAX1 interface is configured in
*/
# if @WITH_SAX1@
# define LIBXML_SAX1_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_FTP_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether the FTP support is configured in
*/
# if @WITH_FTP@
# define LIBXML_FTP_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_HTTP_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether the HTTP support is configured in
*/
# if @WITH_HTTP@
# define LIBXML_HTTP_ENABLED
# endif
2003-09-28 18:58:27 +00:00
/**
* LIBXML_VALID_ENABLED :
*
* Whether the DTD validation support is configured in
*/
# if @WITH_VALID@
# define LIBXML_VALID_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_HTML_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether the HTML support is configured in
*/
# if @WITH_HTML@
# define LIBXML_HTML_ENABLED
# endif
2003-09-28 18:58:27 +00:00
/**
* LIBXML_LEGACY_ENABLED :
*
* Whether the deprecated APIs are compiled in for compatibility
*/
# if @WITH_LEGACY@
# define LIBXML_LEGACY_ENABLED
# endif
2002-03-04 17:09:44 +00:00
/**
* LIBXML_C14N_ENABLED :
*
* Whether the Canonicalization support is configured in
*/
# if @WITH_C14N@
# define LIBXML_C14N_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_CATALOG_ENABLED :
*
2001-05-10 14:17:55 +00:00
* Whether the Catalog support is configured in
*/
# if @WITH_CATALOG@
# define LIBXML_CATALOG_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_DOCB_ENABLED :
*
2001-04-23 13:41:34 +00:00
* Whether the SGML Docbook support is configured in
*/
# if @WITH_DOCB@
# define LIBXML_DOCB_ENABLED
2001-02-23 17:55:21 +00:00
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_XPATH_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether XPath is configured in
*/
# if @WITH_XPATH@
# define LIBXML_XPATH_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_XPTR_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether XPointer is configured in
*/
# if @WITH_XPTR@
# define LIBXML_XPTR_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_XINCLUDE_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether XInclude is configured in
*/
# if @WITH_XINCLUDE@
# define LIBXML_XINCLUDE_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_ICONV_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether iconv support is available
*/
# if @WITH_ICONV@
# define LIBXML_ICONV_ENABLED
# endif
2010-11-04 17:42:42 +01:00
/**
* LIBXML_ICU_ENABLED :
*
* Whether icu support is available
*/
# if @WITH_ICU@
# define LIBXML_ICU_ENABLED
# endif
2003-07-30 15:12:01 +00:00
/**
* LIBXML_ISO8859X_ENABLED :
*
* Whether ISO - 8859 - * support is made available in case iconv is not
*/
# if @WITH_ISO8859X@
# define LIBXML_ISO8859X_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* LIBXML_DEBUG_ENABLED :
*
2001-02-23 17:55:21 +00:00
* Whether Debugging module is configured in
*/
# if @WITH_DEBUG@
# define LIBXML_DEBUG_ENABLED
# endif
2001-05-19 14:59:49 +00:00
/**
* DEBUG_MEMORY_LOCATION :
*
2001-02-23 17:55:21 +00:00
* Whether the memory debugging is configured in
*/
# if @WITH_MEM_DEBUG@
# define DEBUG_MEMORY_LOCATION
# endif
2004-10-04 14:09:17 +00:00
/**
* LIBXML_DEBUG_RUNTIME :
*
* Whether the runtime debugging is configured in
*/
2005-12-14 17:14:35 +00:00
# if @WITH_RUN_DEBUG@
2004-10-04 14:09:17 +00:00
# define LIBXML_DEBUG_RUNTIME
# endif
2002-04-16 15:50:10 +00:00
/**
2003-09-25 12:18:34 +00:00
* LIBXML_UNICODE_ENABLED :
2002-04-16 15:50:10 +00:00
*
* Whether the Unicode related interfaces are compiled in
*/
2002-09-19 19:56:43 +00:00
# if @WITH_REGEXPS@
2002-04-16 15:50:10 +00:00
# define LIBXML_UNICODE_ENABLED
# endif
/**
2003-09-25 12:18:34 +00:00
* LIBXML_REGEXP_ENABLED :
2002-04-16 15:50:10 +00:00
*
* Whether the regular expressions interfaces are compiled in
*/
2002-09-19 19:56:43 +00:00
# if @WITH_REGEXPS@
2002-04-16 15:50:10 +00:00
# define LIBXML_REGEXP_ENABLED
# endif
/**
2003-09-25 12:18:34 +00:00
* LIBXML_AUTOMATA_ENABLED :
2002-04-16 15:50:10 +00:00
*
* Whether the automata interfaces are compiled in
*/
2002-09-19 19:56:43 +00:00
# if @WITH_REGEXPS@
2002-04-16 15:50:10 +00:00
# define LIBXML_AUTOMATA_ENABLED
# endif
2005-08-22 12:07:04 +00:00
/**
* LIBXML_EXPR_ENABLED :
*
* Whether the formal expressions interfaces are compiled in
*/
# if @WITH_SCHEMAS@
# define LIBXML_EXPR_ENABLED
# endif
2002-04-16 15:50:10 +00:00
/**
2003-09-25 12:18:34 +00:00
* LIBXML_SCHEMAS_ENABLED :
2002-04-16 15:50:10 +00:00
*
* Whether the Schemas validation interfaces are compiled in
*/
# if @WITH_SCHEMAS@
# define LIBXML_SCHEMAS_ENABLED
# endif
2005-07-23 15:00:22 +00:00
/**
* LIBXML_SCHEMATRON_ENABLED :
*
* Whether the Schematron validation interfaces are compiled in
*/
# if @WITH_SCHEMATRON@
# define LIBXML_SCHEMATRON_ENABLED
# endif
2005-01-04 15:10:22 +00:00
/**
* LIBXML_MODULES_ENABLED :
*
* Whether the module interfaces are compiled in
*/
# if @WITH_MODULES@
# define LIBXML_MODULES_ENABLED
2005-08-22 21:22:27 +00:00
/**
* LIBXML_MODULE_EXTENSION :
*
* the string suffix used by dynamic modules ( usually shared libraries )
*/
2005-01-04 15:10:22 +00:00
# define LIBXML_MODULE_EXTENSION "@MODULE_EXTENSION@"
# endif
2006-07-13 06:29:56 +00:00
/**
* LIBXML_ZLIB_ENABLED :
*
* Whether the Zlib support is compiled in
*/
# if @WITH_ZLIB@
# define LIBXML_ZLIB_ENABLED
# endif
2011-09-18 16:59:13 +02:00
/**
* LIBXML_LZMA_ENABLED :
*
* Whether the Lzma support is compiled in
*/
# if @WITH_LZMA@
# define LIBXML_LZMA_ENABLED
# endif
2009-01-18 20:53:59 +00:00
# ifdef __GNUC__
# ifdef HAVE_ANSIDECL_H
# include <ansidecl.h>
# endif
2001-05-19 14:59:49 +00:00
/**
* ATTRIBUTE_UNUSED :
*
* Macro used to signal to GCC unused function parameters
*/
2009-01-18 20:53:59 +00:00
2001-03-26 16:28:29 +00:00
# ifndef ATTRIBUTE_UNUSED
Various "make distcheck" and portability fixups
Makefile.am:
* Don't use @VAR@, use $(VAR). Autoconf's AC_SUBST provides us the Make
variable, it allows overriding the value at the command line, and
(notably) it avoids a Make parse error in the libxml2_la_LDFLAGS
assignment when @MODULE_PLATFORM_LIBS@ is empty
* Changed how the THREADS_W32 mechanism switches the build between
testThreads.c and testThreadsWin32.c as appropriate; using AM_CONDITIONAL
allows this to work cleanly and plays well with dependencies
* testapi.c should be specified as BUILT_SOURCES
* Create symlinks to the test/ and result/ subdirs so that the runtests
target is usable in out-of-source-tree builds
* Don't do MAKEFLAGS+=--silent as this is not portable to non-GNU Makes
* Fixed incorrect find(1) syntax in the "cleanup" rule, and doing "rm -f"
instead of just "rm" is good form
* (DIST)CLEANFILES needed a bit more coverage to allow "make distcheck" to
pass
configure.in:
* Need AC_PROG_LN_S to create test/ and result/ symlinks in Makefile.am
* AC_LIBTOOL_WIN32_DLL and AM_PROG_LIBTOOL are obsolete; these have been
superceded by LT_INIT
* Don't rebuild docs by default, as this requires GNU Make (as
implemented)
* Check for uint32_t as some platforms don't provide it
* Check for some more functions, and undefine HAVE_MMAP if we don't also
HAVE_MUNMAP (one system I tested on actually needed this)
* Changed THREADS_W32 from a filename insert into an Automake conditional
* The "Copyright" file will not be in the current directory if builddir !=
srcdir
doc/Makefile.am:
* EXTRA_DIST cannot use wildcards when they refer to generated files; this
breaks dependencies. What I did was define EXTRA_DIST_wc, which uses GNU
Make $(wildcard) directives to build up a list of files, and EXTRA_DIST,
as a literal expansion of EXTRA_DIST_wc. I also added a new rule,
"check-extra-dist", to simplify checking that the two variables are
equivalent. (Note that this works only when builddir == srcdir)
(I can implement this differently if desired; this is just one way of
doing it)
* Don't define an "all" target; this steps on Automake's toes
* Fixed up the "libxml2-api.xml ..." rule by using $(wildcard) for
dependencies (as Make doesn't process the wildcards otherwise) and
qualifying appropriate files with $(srcdir)
(Note that $(srcdir) is not needed in the dependencies, thanks to VPATH,
which we can count on as this is GNU-Make-only code anyway)
doc/devhelp/Makefile.am:
* Qualified appropriate files with $(srcdir)
* Added an "uninstall-local" rule so that "make distcheck" passes
doc/examples/Makefile.am:
* Rather than use a wildcard that doesn't work, use a substitution that
most Make programs can handle
doc/examples/index.py:
* Do the same here
include/libxml/nanoftp.h:
* Some platforms (e.g. MSVC 6) already #define INVALID_SOCKET:
user@host:/cygdrive/c/Program Files/Microsoft Visual Studio/VC98/\
Include$ grep -R INVALID_SOCKET .
./WINSOCK.H:#define INVALID_SOCKET (SOCKET)(~0)
./WINSOCK2.H:#define INVALID_SOCKET (SOCKET)(~0)
include/libxml/xmlversion.h.in:
* Support ancient GCCs (I was actually able to build the library with 2.5
but for this bit)
python/Makefile.am:
* Expanded CLEANFILES to allow "make distcheck" to pass
python/tests/Makefile.am:
* Define CLEANFILES instead of a "clean" rule, and added tmp.xml to allow
"make distcheck" to pass
testRelax.c:
* Use HAVE_MMAP instead of the less explicit HAVE_SYS_MMAN_H (as some
systems have the header but not the function)
testSchemas.c:
* Use HAVE_MMAP instead of the less explicit HAVE_SYS_MMAN_H
testapi.c:
* Don't use putenv() if it's not available
threads.c:
* This fixes the following build error on Solaris 8:
libtool: compile: cc -DHAVE_CONFIG_H -I. -I./include -I./include \
-D_REENTRANT -D__EXTENSIONS__ -D_REENTRANT -Dsparc -Xa -mt -v \
-xarch=v9 -xcrossfile -xO5 -c threads.c -KPIC -DPIC -o threads.o
"threads.c", line 442: controlling expressions must have scalar type
"threads.c", line 512: controlling expressions must have scalar type
cc: acomp failed for threads.c
*** Error code 1
trio.c:
* Define isascii() if the system doesn't provide it
trio.h:
* The trio library's HAVE_CONFIG_H header is not the same as LibXML2's
HAVE_CONFIG_H header; this change is needed to avoid a double-inclusion
win32/configure.js:
* Added support for the LZMA compression option
win32/Makefile.{bcb,mingw,msvc}:
* Added appropriate bits to support WITH_LZMA=1
* Install the header files under $(INCPREFIX)\libxml2\libxml instead of
$(INCPREFIX)\libxml, to mirror the install location on Unix+Autotools
xml2-config.in:
* @MODULE_PLATFORM_LIBS@ (usually "-ldl") needs to be in there in order for
`xml2-config --libs` to provide a complete set of dependencies
xmllint.c:
* Use HAVE_MMAP instead of the less-explicit HAVE_SYS_MMAN_H
2012-08-06 11:32:54 +08:00
# if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
# define ATTRIBUTE_UNUSED __attribute__((unused))
# else
# define ATTRIBUTE_UNUSED
# endif
2001-03-26 16:28:29 +00:00
# endif
2009-01-18 20:53:59 +00:00
/**
2009-09-09 18:57:26 +02:00
* LIBXML_ATTR_ALLOC_SIZE :
2009-01-18 20:53:59 +00:00
*
* Macro used to indicate to GCC this is an allocator function
*/
2009-09-09 18:57:26 +02:00
# ifndef LIBXML_ATTR_ALLOC_SIZE
2015-04-14 13:51:01 -05:00
# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
2009-09-09 18:57:26 +02:00
# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
2009-01-18 17:26:02 +00:00
# else
2009-09-09 18:57:26 +02:00
# define LIBXML_ATTR_ALLOC_SIZE(x)
2009-01-18 17:26:02 +00:00
# endif
# else
2009-09-09 18:57:26 +02:00
# define LIBXML_ATTR_ALLOC_SIZE(x)
2009-01-18 17:26:02 +00:00
# endif
2009-01-18 20:53:59 +00:00
/**
2009-04-15 09:20:25 +00:00
* LIBXML_ATTR_FORMAT :
2009-01-18 20:53:59 +00:00
*
* Macro used to indicate to GCC the parameter are printf like
*/
2009-04-15 09:20:25 +00:00
# ifndef LIBXML_ATTR_FORMAT
2009-01-18 20:53:59 +00:00
# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))
2009-04-15 09:20:25 +00:00
# define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args)))
2009-01-18 20:53:59 +00:00
# else
2009-04-15 09:20:25 +00:00
# define LIBXML_ATTR_FORMAT(fmt,args)
2009-01-18 20:53:59 +00:00
# endif
2001-03-26 16:28:29 +00:00
# else
2009-04-15 09:20:25 +00:00
# define LIBXML_ATTR_FORMAT(fmt,args)
2009-01-18 20:53:59 +00:00
# endif
# else /* ! __GNUC__ */
/**
* ATTRIBUTE_UNUSED :
*
* Macro used to signal to GCC unused function parameters
*/
2001-03-26 16:28:29 +00:00
# define ATTRIBUTE_UNUSED
2009-01-18 20:53:59 +00:00
/**
2009-09-09 18:57:26 +02:00
* LIBXML_ATTR_ALLOC_SIZE :
2009-01-18 20:53:59 +00:00
*
* Macro used to indicate to GCC this is an allocator function
*/
2009-09-09 18:57:26 +02:00
# define LIBXML_ATTR_ALLOC_SIZE(x)
2009-01-18 20:53:59 +00:00
/**
2009-04-15 09:20:25 +00:00
* LIBXML_ATTR_FORMAT :
2009-01-18 20:53:59 +00:00
*
* Macro used to indicate to GCC the parameter are printf like
*/
2009-04-15 09:20:25 +00:00
# define LIBXML_ATTR_FORMAT(fmt,args)
2009-01-18 20:53:59 +00:00
# endif /* __GNUC__ */
2001-03-26 16:28:29 +00:00
2001-02-23 17:55:21 +00:00
# ifdef __cplusplus
}
# endif /* __cplusplus */
# endif