summaryrefslogtreecommitdiff
path: root/functable.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-08-23 00:59:38 -0700
committerGitHub <noreply@github.com>2020-08-23 09:59:38 +0200
commita540c3f9638aadde613e1d14042d67b4a644b934 (patch)
tree24091d482be8c105b4361fafac93b7363855ea74 /functable.c
parent28e5e73f3427f3b80a3926f2564ae3ecb9309c72 (diff)
Add optional support for thread local storage. (#733)
Diffstat (limited to 'functable.c')
-rw-r--r--functable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/functable.c b/functable.c
index aa70046..730fd26 100644
--- a/functable.c
+++ b/functable.c
@@ -126,7 +126,7 @@ extern int32_t longest_match_unaligned_avx2(deflate_state *const s, Pos cur_matc
#endif
#endif
-ZLIB_INTERNAL __thread struct functable_s functable;
+ZLIB_INTERNAL Z_TLS struct functable_s functable;
ZLIB_INTERNAL void cpu_check_features(void)
{
@@ -416,7 +416,7 @@ ZLIB_INTERNAL int32_t longest_match_stub(deflate_state *const s, Pos cur_match)
}
/* functable init */
-ZLIB_INTERNAL __thread struct functable_s functable = {
+ZLIB_INTERNAL Z_TLS struct functable_s functable = {
insert_string_stub,
quick_insert_string_stub,
adler32_stub,