summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tclzipfs/tclZipfs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tclzipfs/tclZipfs.c b/tclzipfs/tclZipfs.c
index 8b23a7d..ae057e6 100644
--- a/tclzipfs/tclZipfs.c
+++ b/tclzipfs/tclZipfs.c
@@ -35,6 +35,13 @@
#ifdef HAVE_ZLIB
#include "zlib.h"
+
+#ifdef Z_U4
+ typedef Z_U4 z_crc_t;
+#else
+ typedef unsigned long z_crc_t;
+#endif
+
#include "crypt.h"
#ifdef CFG_RUNTIME_DLLFILE
@@ -296,12 +303,12 @@ static const char pwrot[16] = {
/*
* Table to compute CRC32.
- */
#ifdef Z_U4
typedef Z_U4 z_crc_t;
#else
typedef unsigned long z_crc_t;
#endif
+ */
static const z_crc_t crc32tab[256] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419,