[prev in list] [next in list] [prev in thread] [next in thread]
List: zlib-devel
Subject: [Zlib-devel] Patch for example.c
From: cosmin () cs ! toronto ! edu (Cosmin Truta)
Date: 2003-09-11 3:45:29
Message-ID: Pine.GSO.4.44.0309102332330.16051-100000 () qew ! cs
[Download RAW message or body]
Hi,
I realized that, if NO_GZCOMPRESS is defined, none of the demo programs
work. At least it's possible to have a working example.c by ifdef'ing
out the body of test_gzio() when NO_GZCOMPRESS is defined.
Best regards,
Cosmin
--- zlib-1.2.0.5/example.c Wed Aug 20 16:57:18 2003
+++ zlib-cos/example.c Tue Sep 09 22:34:00 2003
@@ -89,6 +89,7 @@
Byte *uncompr;
uLong uncomprLen;
{
+#ifndef NO_GZCOMPRESS
int err;
int len = (int)strlen(hello)+1;
gzFile file;
@@ -159,6 +160,9 @@
}
gzclose(file);
+#else
+ fprintf(stderr, "NO_GZCOMPRESS -- gz* functions cannot compress\n");
+#endif
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic