summaryrefslogtreecommitdiffstats
path: root/PC/config.c
diff options
context:
space:
mode:
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},