From 600058529c6429745fac6ffe074a44bc8111f0e7 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Tue, 16 Sep 2025 16:17:49 -0500 Subject: [PATCH] Check for NO_THREAD_LS before assigning THREAD_LS_T --- wolfssl/wolfcrypt/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 3f2654e2b..1b69a022b 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -423,7 +423,7 @@ enum { #endif /* set up thread local storage if available */ -#ifdef HAVE_THREAD_LS +#if defined(HAVE_THREAD_LS) && !defined(NO_THREAD_LS) #if defined(_MSC_VER) || defined(__WATCOMC__) #define THREAD_LS_T __declspec(thread) /* Thread local storage only in FreeRTOS v8.2.1 and higher */