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 _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml