Skip to content

Commit 9cef253

Browse files
[3.6] bpo-29768: Fixed compile-time check for expat version. (#576)
(cherry picked from commit 22e707f)
1 parent 51b646a commit 9cef253

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/pyexpat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ newxmlparseobject(const char *encoding, const char *namespace_separator, PyObjec
11911191
Py_DECREF(self);
11921192
return NULL;
11931193
}
1194-
#if ((XML_MAJOR_VERSION >= 2) && (XML_MINOR_VERSION >= 1)) || defined(XML_HAS_SET_HASH_SALT)
1194+
#if XML_COMBINED_VERSION >= 20100 || defined(XML_HAS_SET_HASH_SALT)
11951195
/* This feature was added upstream in libexpat 2.1.0. Our expat copy
11961196
* has a backport of this feature where we also define XML_HAS_SET_HASH_SALT
11971197
* to indicate that we can still use it. */

0 commit comments

Comments
 (0)