Skip to content

Commit 952b7cb

Browse files
bpo-29768: Fixed compile-time check for expat version. (#574) (#578)
(cherry picked from commit 22e707f)
1 parent 0410bee commit 952b7cb

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
@@ -1190,7 +1190,7 @@ newxmlparseobject(const char *encoding, const char *namespace_separator, PyObjec
11901190
Py_DECREF(self);
11911191
return NULL;
11921192
}
1193-
#if ((XML_MAJOR_VERSION >= 2) && (XML_MINOR_VERSION >= 1)) || defined(XML_HAS_SET_HASH_SALT)
1193+
#if XML_COMBINED_VERSION >= 20100 || defined(XML_HAS_SET_HASH_SALT)
11941194
/* This feature was added upstream in libexpat 2.1.0. Our expat copy
11951195
* has a backport of this feature where we also define XML_HAS_SET_HASH_SALT
11961196
* to indicate that we can still use it. */

0 commit comments

Comments
 (0)