summaryrefslogtreecommitdiffstats
path: root/PC/config.c
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2017-09-07 00:29:37 (GMT)
committerGitHub <noreply@github.com>2017-09-07 00:29:37 (GMT)
commitd01db1c2a2a71455163a1d3b214cc8dc27201303 (patch)
tree6b089cebac71c3bc48df25985c2911597c559a5b /PC/config.c
parente7c566caf177afe43b57f0b2723e723d880368e8 (diff)
downloadcpython-d01db1c2a2a71455163a1d3b214cc8dc27201303.zip
cpython-d01db1c2a2a71455163a1d3b214cc8dc27201303.tar.gz
cpython-d01db1c2a2a71455163a1d3b214cc8dc27201303.tar.bz2
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/config.c')
-rw-r--r--PC/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/config.c b/PC/config.c
index f5aa332..5f42600 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},