Skip to content

Commit 22e707f

Browse files
bpo-29768: Fixed compile-time check for expat version. (python#574)
1 parent 390a096 commit 22e707f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/pyexpat.c

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

0 commit comments

Comments
 (0)