aboutsummaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
authorMark Adler <git@madler.net>2026-01-18 10:18:46 -0800
committerMark Adler <git@madler.net>2026-01-18 10:25:01 -0800
commit2209f63bda59360dd2fe765b71f89d84955ddd24 (patch)
tree3f061b4863c90a94f42960c49c96d8e80983f13b /crc32.c
parent8e50fb08515ff0dd7e16247de47858cc204ac26e (diff)
downloadzlib-2209f63bda59360dd2fe765b71f89d84955ddd24.tar.gz
zlib-2209f63bda59360dd2fe765b71f89d84955ddd24.tar.bz2
zlib-2209f63bda59360dd2fe765b71f89d84955ddd24.zip
Make z_once() local to avoid conditional external symbols.
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/crc32.c b/crc32.c
index 630049fc..4cc573f8 100644
--- a/crc32.c
+++ b/crc32.c
@@ -24,8 +24,11 @@
24# include <stdio.h> 24# include <stdio.h>
25# ifndef DYNAMIC_CRC_TABLE 25# ifndef DYNAMIC_CRC_TABLE
26# define DYNAMIC_CRC_TABLE 26# define DYNAMIC_CRC_TABLE
27# endif /* !DYNAMIC_CRC_TABLE */ 27# endif
28#endif /* MAKECRCH */ 28#endif
29#ifdef DYNAMIC_CRC_TABLE
30# define Z_ONCE
31#endif
29 32
30#include "zutil.h" /* for Z_U4, Z_U8, z_crc_t, and FAR definitions */ 33#include "zutil.h" /* for Z_U4, Z_U8, z_crc_t, and FAR definitions */
31 34