Skip to content

Commit 0c2ed76

Browse files
[2.7] bpo-29768: Fixed compile-time check for expat version. (#577)
(cherry picked from commit 22e707f)
1 parent de1c7d5 commit 0c2ed76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/pyexpat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ newxmlparseobject(char *encoding, char *namespace_separator, PyObject *intern)
13191319
return NULL;
13201320
}
13211321

1322-
#if ((XML_MAJOR_VERSION >= 2) && (XML_MINOR_VERSION >= 1)) || defined(XML_HAS_SET_HASH_SALT)
1322+
#if XML_COMBINED_VERSION >= 20100 || defined(XML_HAS_SET_HASH_SALT)
13231323
/* This feature was added upstream in libexpat 2.1.0. Our expat copy
13241324
* has a backport of this feature where we also define XML_HAS_SET_HASH_SALT
13251325
* to indicate that we can still use it. */

0 commit comments

Comments
 (0)