Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
update to 2.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Mar 3, 2016
1 parent dbb1c71 commit 34ad720
Show file tree
Hide file tree
Showing 55 changed files with 10 additions and 251 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion include/libxml/tree.h → include/libxml2/libxml/tree.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ typedef enum {
XML_BUFFER_ALLOC_EXACT, /* grow only to the minimal size */
XML_BUFFER_ALLOC_IMMUTABLE, /* immutable buffer */
XML_BUFFER_ALLOC_IO, /* special allocation scheme used for I/O */
XML_BUFFER_ALLOC_HYBRID /* exact up to a threshold, and doubleit thereafter */
XML_BUFFER_ALLOC_HYBRID, /* exact up to a threshold, and doubleit thereafter */
XML_BUFFER_ALLOC_BOUNDED /* limit the upper size of the buffer */
} xmlBufferAllocationScheme;

/**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions include/libxml/xmlversion.h → include/libxml2/libxml/xmlversion.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
*
* the version string like "1.2.3"
*/
#define LIBXML_DOTTED_VERSION "2.9.2"
#define LIBXML_DOTTED_VERSION "2.9.3"

/**
* LIBXML_VERSION:
*
* the version number: 1.2.3 value is 10203
*/
#define LIBXML_VERSION 20902
#define LIBXML_VERSION 20903

/**
* LIBXML_VERSION_STRING:
*
* the version number string, 1.2.3 value is "10203"
*/
#define LIBXML_VERSION_STRING "20902"
#define LIBXML_VERSION_STRING "20903"

/**
* LIBXML_VERSION_EXTRA:
Expand All @@ -58,7 +58,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
* Macro to check that the libxml version in use is compatible with
* the version the software has been compiled against
*/
#define LIBXML_TEST_VERSION xmlCheckVersion(20902);
#define LIBXML_TEST_VERSION xmlCheckVersion(20903);

#ifndef VMS
#if 0
Expand Down Expand Up @@ -405,7 +405,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
*
* Whether the Lzma support is compiled in
*/
#if 0
#if 1
#define LIBXML_LZMA_ENABLED
#endif

Expand Down Expand Up @@ -435,7 +435,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
*/

#ifndef LIBXML_ATTR_ALLOC_SIZE
# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
# else
# define LIBXML_ATTR_ALLOC_SIZE(x)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
128 changes: 0 additions & 128 deletions include/win32config.h

This file was deleted.

86 changes: 0 additions & 86 deletions include/wsockcompat.h

This file was deleted.

Binary file removed lib/.DS_Store
Binary file not shown.
Binary file added lib/i386/liblzma.a
Binary file not shown.
Binary file modified lib/i386/libxml2.a
Binary file not shown.
Binary file added lib/x64/liblzma.a
Binary file not shown.
Binary file modified lib/x64/libxml2.a
Binary file not shown.
32 changes: 2 additions & 30 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,2 @@
Both versions were compiled with msys and gcc 4.6.3 from Rtools 3.1.
Simply extract libxml2 dir and use:

```bash
CFLAGS="-m32" ./configure
make
```

Or for x64:

```bash
CFLAGS="-m64" ./configure
make
```

**Important:** Some versions of mingw give this error when linking the static library:

```
undefined reference to `_imp__xmlFree'
```

To fix this, you need to pass `-DIN_LIBXML` when compiling your **client**. See this [comment](https://github.com/GNOME/libxml2/blob/v2.9.2/include/libxml/xmlexports.h#L111-L115).
Example `Makevars.win` file:

```Make
LIB_XML="../windows/libxml2-2.9.2"
PKG_CPPFLAGS= -I${LIB_XML}/include -DIN_LIBXML
PKG_LIBS= -L${LIB_XML}/lib${R_ARCH} -lxml2 -liconv -lz -lws2_32
```

Patched libxml2 versions from msys2.
Client must build with `-DLIBXML_STATIC` to link against static libraries.

0 comments on commit 34ad720

Please sign in to comment.