summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2017-09-06 17:29:37 -0700
committerGitHub <noreply@github.com>2017-09-06 17:29:37 -0700
commitd01db1c2a2a71455163a1d3b214cc8dc27201303 (patch)
tree6b089cebac71c3bc48df25985c2911597c559a5b /PC
parente7c566caf177afe43b57f0b2723e723d880368e8 (diff)
downloadcpython-git-d01db1c2a2a71455163a1d3b214cc8dc27201303.tar.gz
bpo-31358: Pull zlib out of the repository (GH-3375)
Also enable building externals by default on Windows, use PCbuild\build.bat's -E option to disable it.
Diffstat (limited to 'PC')
-rw-r--r--PC/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/config.c b/PC/config.c
index f5aa332a5c..5f426004eb 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -48,7 +48,9 @@ extern PyObject* PyInit__struct(void);
extern PyObject* PyInit__datetime(void);
extern PyObject* PyInit__functools(void);
extern PyObject* PyInit__json(void);
+#ifdef _Py_HAVE_ZLIB
extern PyObject* PyInit_zlib(void);
+#endif
extern PyObject* PyInit__multibytecodec(void);
extern PyObject* PyInit__codecs_cn(void);
@@ -127,7 +129,9 @@ struct _inittab _PyImport_Inittab[] = {
{"xxsubtype", PyInit_xxsubtype},
{"zipimport", PyInit_zipimport},
+#ifdef _Py_HAVE_ZLIB
{"zlib", PyInit_zlib},
+#endif
/* CJK codecs */
{"_multibytecodec", PyInit__multibytecodec},