1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-08 13:57:24 +03:00

Variables need 'extern' in static lib on Cygwin

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.
This commit is contained in:
Michael Haubenwallner 2018-09-22 15:45:02 +02:00 committed by Nick Wellnhofer
parent 0ed6addb8f
commit 73b2417c51

View File

@ -145,7 +145,7 @@
#if !defined(LIBXML_STATIC)
#define XMLPUBVAR __declspec(dllimport) extern
#else
#define XMLPUBVAR
#define XMLPUBVAR extern
#endif
#endif
#define XMLCALL __cdecl