[Python-checkins] bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)

Miss Islington (bot) webhook-mailer at python.org
Mon Dec 10 10:25:36 EST 2018


https://github.com/python/cpython/commit/ef1fc0d031c925416d49b407518932ccbf57a0d2
commit: ef1fc0d031c925416d49b407518932ccbf57a0d2
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-12-10T07:25:31-08:00
summary:

bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)

(cherry picked from commit b6ef6f69a9afc979640a5f9883f799de1364bff7)

Co-authored-by: Victor Stinner <vstinner at redhat.com>

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