[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:41:15 EST 2018


https://github.com/python/cpython/commit/3acf30de90936fe3714bb62873e2523c0440e652
commit: 3acf30de90936fe3714bb62873e2523c0440e652
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年12月10日T07:41:11-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

AltStyle によって変換されたページ (->オリジナル) /