Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4bfecb9

Browse files
[3.6] bpo-35011: Restore use of pyexpatns.h in libexpat (GH-9939) (GH-9941)
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. 5dc3f23b5fb0b510926012cb3732dae63cddea60GH-diff-3afaf7274c90ce1b7405f75ad825f545 inadvertently removed it when upgrading expat. (cherry picked from commit 9d4712b) Co-authored-by: Gregory P. Smith <[email protected]> https://bugs.python.org/issue35011
1 parent a5ebc20 commit 4bfecb9

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)