summaryrefslogtreecommitdiffstats
path: root/Modules/expat/expat_external.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2019-06-28 03:54:44 (GMT)
committerGitHub <noreply@github.com>2019-06-28 03:54:44 (GMT)
commit3b03b09fc94425915c5b1225e9200a3a95bc827b (patch)
treeef068553e1d0ba55c8a566633466d0b47a1b79ae /Modules/expat/expat_external.h
parent44f91c388a6f4da9ed3300df32ca290b8aa104ea (diff)
downloadcpython-3b03b09fc94425915c5b1225e9200a3a95bc827b.zip
cpython-3b03b09fc94425915c5b1225e9200a3a95bc827b.tar.gz
cpython-3b03b09fc94425915c5b1225e9200a3a95bc827b.tar.bz2
closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)
Diffstat (limited to 'Modules/expat/expat_external.h')
-rw-r--r--Modules/expat/expat_external.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/expat/expat_external.h b/Modules/expat/expat_external.h
index 2d96b4f..875225d 100644
--- a/Modules/expat/expat_external.h
+++ b/Modules/expat/expat_external.h
@@ -35,10 +35,6 @@
/* External API definitions */
-/* Namespace external symbols to allow multiple libexpat version to
- co-exist. */
-#include "pyexpatns.h"
-
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
# define XML_USE_MSC_EXTENSIONS 1
#endif
@@ -97,7 +93,11 @@
# endif
#endif /* not defined XML_STATIC */
-#if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4)
+#ifndef XML_ENABLE_VISIBILITY
+# define XML_ENABLE_VISIBILITY 0
+#endif
+
+#if !defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
# define XMLIMPORT __attribute__ ((visibility ("default")))
#endif