]> granicus.if.org Git - python/commitdiff
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
authorVictor Stinner <vstinner@redhat.com>
Mon, 10 Dec 2018 15:06:18 +0000 (16:06 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Dec 2018 15:06:18 +0000 (16:06 +0100)
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 */