]> granicus.if.org Git - libexpat/commitdiff
Never hide official symbols (for -fvisibility=hidden)
authorSebastian Pipping <sebastian@pipping.org>
Wed, 11 May 2016 18:04:17 +0000 (20:04 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 11 May 2016 18:04:43 +0000 (20:04 +0200)
Based on expat-visibility.patch by
Cristian Rodríguez <crrodriguez@opensuse.org>

expat/lib/expat_external.h

index fdfb62653ce88ee824f94aaef2de773e3e4d6d52..aa08a2f84c07e4afc3773289da641f71d2c14d40 100644 (file)
@@ -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