Skip to content

Commit 9d4712b

Browse files
authored
bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939)
Restores the use of pyexpatns.h to isolate our embedded copy of the expat C library so that its symbols do not conflict at link or dynamic loading time with an embedding application or other extension modules with their own version of libexpat. 5dc3f23#diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat.
1 parent 74a8b6e commit 9d4712b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Restores the use of pyexpatns.h to isolate our embedded copy of the expat C
2+
library so that its symbols do not conflict at link or dynamic loading time
3+
with an embedding application or other extension modules with their own
4+
version of libexpat.

Modules/expat/expat_external.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535

3636
/* External API definitions */
3737

38+
/* Namespace external symbols to allow multiple libexpat version to
39+
co-exist. */
40+
#include "pyexpatns.h"
41+
3842
#if defined(_MSC_EXTENSIONS) && !defined(__BEOS__) && !defined(__CYGWIN__)
3943
# define XML_USE_MSC_EXTENSIONS 1
4044
#endif

0 commit comments

Comments
 (0)