]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 10 Dec 2018 15:41:11 +0000 (07:41 -0800)
committerGitHub <noreply@github.com>
Mon, 10 Dec 2018 15:41:11 +0000 (07:41 -0800)
(cherry picked from commit b6ef6f69a9afc979640a5f9883f799de1364bff7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Modules/expat/xmltok.c

index fa35de71324cebea13f1cbf309bb8e2931bf3956..6371a350dadf9694d1ba14f70ee14398b3f166f0 100644 (file)
@@ -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 */