[Python-checkins] bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
Victor Stinner
webhook-mailer at python.org
Mon Dec 10 10:06:24 EST 2018
https://github.com/python/cpython/commit/b6ef6f69a9afc979640a5f9883f799de1364bff7
commit: b6ef6f69a9afc979640a5f9883f799de1364bff7
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018-12-10T16:06:18+01:00
summary:
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
files:
M Modules/expat/xmltok.c
diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c
index fa35de71324c..6371a350dadf 100644
--- a/Modules/expat/xmltok.c
+++ b/Modules/expat/xmltok.c
@@ -30,7 +30,9 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <pyconfig.h>
+#if !defined(_WIN32) && defined(HAVE_EXPAT_CONFIG_H)
+# include <pyconfig.h>
+#endif
#include <stddef.h>
#include <string.h> /* memcpy */
More information about the Python-checkins
mailing list