From 1eaf75a2c3002874d3fcbb9d19ac8ff3dfe8b534 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 11 May 2016 20:04:17 +0200 Subject: [PATCH] Never hide official symbols (for -fvisibility=hidden) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Based on expat-visibility.patch by Cristian Rodríguez --- expat/lib/expat_external.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/expat/lib/expat_external.h b/expat/lib/expat_external.h index fdfb6265..aa08a2f8 100644 --- a/expat/lib/expat_external.h +++ b/expat/lib/expat_external.h @@ -65,6 +65,9 @@ #endif #endif /* not defined XML_STATIC */ +#if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4) +#define XMLIMPORT __attribute__ ((visibility ("default"))) +#endif /* If we didn't define it above, define it away: */ #ifndef XMLIMPORT -- 2.40.0