Skip to content

Commit 377d238

Browse files
Merge pull request #9207 from embhorn/zd20520
Check for NO_THREAD_LS before assigning THREAD_LS_T
2 parents 5b86465 + 6000585 commit 377d238

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/wolfcrypt/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ enum {
423423
#endif
424424

425425
/* set up thread local storage if available */
426-
#ifdef HAVE_THREAD_LS
426+
#if defined(HAVE_THREAD_LS) && !defined(NO_THREAD_LS)
427427
#if defined(_MSC_VER) || defined(__WATCOMC__)
428428
#define THREAD_LS_T __declspec(thread)
429429
/* Thread local storage only in FreeRTOS v8.2.1 and higher */

0 commit comments

Comments
 (0)