summaryrefslogtreecommitdiff
path: root/include/libxml/xmlexports.h
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2009-09-10 22:10:39 +0200
committerMike Hommey <glandium@debian.org>2009-09-10 22:10:39 +0200
commitc3e4f3c26035bc93a69e5aa2ad435809e8be8a4e (patch)
treee65557c2e042fe8a77635b0548db10ad97bc1bfe /include/libxml/xmlexports.h
parente248b20a3b7df364cc9617b8685b4c190338bcd2 (diff)
downloadlibxml2-c3e4f3c26035bc93a69e5aa2ad435809e8be8a4e.tar.gz
Import upstream version 2.7.4upstream/2.7.4.dfsg
Diffstat (limited to 'include/libxml/xmlexports.h')
-rw-r--r--include/libxml/xmlexports.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libxml/xmlexports.h b/include/libxml/xmlexports.h
index 29a6f54..b90659f 100644
--- a/include/libxml/xmlexports.h
+++ b/include/libxml/xmlexports.h
@@ -108,7 +108,12 @@
#undef XMLPUBVAR
#undef XMLCALL
#undef XMLCDECL
- #if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
+ /*
+ * if defined(IN_LIBXML) this raises problems on mingw with msys
+ * _imp__xmlFree listed as missing. Try to workaround the problem
+ * by also making that declaration when compiling client code.
+ */
+ #if !defined(LIBXML_STATIC)
#define XMLPUBFUN __declspec(dllexport)
#define XMLPUBVAR __declspec(dllexport)
#else