[xml] [PATCH] variables need 'extern' in static lib on Cygwin
- From: Michael Haubenwallner <michael haubenwallner ssi-schaefer com>
- To: xml gnome org
- Cc: Bruno Haible <bruno clisp org>, Michael Haubenwallner <michael haubenwallner ssi-schaefer com>
- Subject: [xml] [PATCH] variables need 'extern' in static lib on Cygwin
- Date: Mon, 17 Sep 2018 10:59:06 +0200
While the dllimport/dllexport macros now work for Cygwin, using the
static library still requires variables to be declared as 'extern'.
This is a regression of c65c9e8ee07e2dab0647392c2bd1795a5bc99829,
found+fixed by Bruno Haible using static libxml embedded in gettext.
---
include/libxml/xmlexports.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/libxml/xmlexports.h b/include/libxml/xmlexports.h
index bc8a90d4..31ab8a10 100644
--- a/include/libxml/xmlexports.h
+++ b/include/libxml/xmlexports.h
@@ -145,7 +145,7 @@
#if !defined(LIBXML_STATIC)
#define XMLPUBVAR __declspec(dllimport) extern
#else
- #define XMLPUBVAR
+ #define XMLPUBVAR extern
#endif
#endif
#define XMLCALL __cdecl
--
2.16.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]