summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:48 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:22:48 -0700
commitf81ba93d4a7e43fccf4730e5e7404ee765a76e3e (patch)
tree1f130d999e06b2d572bce1f99eaeaadd329a7ae7 /example.c
parent4b5a43a219d51066c01ff2ab86af18b967f2d0dd (diff)
downloadzlib-f81ba93d4a7e43fccf4730e5e7404ee765a76e3e.tar.gz
zlib 1.2.0.6v1.2.0.6
Diffstat (limited to 'example.c')
-rw-r--r--example.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/example.c b/example.c
index 2acc099..c2361f9 100644
--- a/example.c
+++ b/example.c
@@ -89,6 +89,9 @@ void test_gzio(fname, uncompr, uncomprLen)
Byte *uncompr;
uLong uncomprLen;
{
+#ifdef NO_GZCOMPRESS
+ fprintf(stderr, "NO_GZCOMPRESS -- gz* functions cannot compress\n");
+#else
int err;
int len = (int)strlen(hello)+1;
gzFile file;
@@ -159,6 +162,7 @@ void test_gzio(fname, uncompr, uncomprLen)
}
gzclose(file);
+#endif
}
/* ===========================================================================