1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-29 01:49:22 +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 c65c9e8ee0,
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) #if !defined(LIBXML_STATIC)
#define XMLPUBVAR __declspec(dllimport) extern #define XMLPUBVAR __declspec(dllimport) extern
#else #else
#define XMLPUBVAR #define XMLPUBVAR extern
#endif #endif
#endif #endif
#define XMLCALL __cdecl #define XMLCALL __cdecl