summaryrefslogtreecommitdiffstats
path: root/Modules/expat
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-10 15:06:18 (GMT)
committerGitHub <noreply@github.com>2018-12-10 15:06:18 (GMT)
commitb6ef6f69a9afc979640a5f9883f799de1364bff7 (patch)
tree688e210db791128a7259dca2eef1c66e02af198e /Modules/expat
parentfc662ac332443a316a120fa5287c235dc4f8739b (diff)
downloadcpython-b6ef6f69a9afc979640a5f9883f799de1364bff7.zip
cpython-b6ef6f69a9afc979640a5f9883f799de1364bff7.tar.gz
cpython-b6ef6f69a9afc979640a5f9883f799de1364bff7.tar.bz2
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
Diffstat (limited to 'Modules/expat')
-rw-r--r--Modules/expat/xmltok.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c
index fa35de7..6371a35 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 */