Check for NO_THREAD_LS before assigning THREAD_LS_T

This commit is contained in:
Eric Blankenhorn
2025-09-16 16:17:49 -05:00
parent aa8151dc4b
commit 600058529c

View File

@@ -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 */