From c7bb48c056246c9e7eb6ce2053b569dce74d0ea1 Mon Sep 17 00:00:00 2001 From: ampli Date: Tue, 23 Apr 2024 22:00:19 +0300 Subject: [PATCH] regex-morph.c: Add alloc_key() under #if HAVE_THREADS_H --- link-grammar/dict-common/regex-morph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link-grammar/dict-common/regex-morph.c b/link-grammar/dict-common/regex-morph.c index 5010ee641..5bd76e0b9 100644 --- a/link-grammar/dict-common/regex-morph.c +++ b/link-grammar/dict-common/regex-morph.c @@ -169,7 +169,6 @@ static void reg_free(Regex_node *rn) #if HAVE_THREADS_H && !__EMSCRIPTEN__ static once_flag call_once_flag = ONCE_FLAG_INIT; static tss_t re_md_key; -#endif // HAVE_THREADS_H && !__EMSCRIPTEN__ static void alloc_key(void) { @@ -177,6 +176,7 @@ static void alloc_key(void) if (thrd_success == rc) return; prt_error("Error: pcre2 alloc per-thread key failed\n"); } +#endif // HAVE_THREADS_H && !__EMSCRIPTEN__ static pcre2_match_data* alloc_match_data(void) {