Skip to content

Commit

Permalink
Add C23 thread_local storage-class
Browse files Browse the repository at this point in the history
  • Loading branch information
feeley committed Nov 13, 2023
1 parent 60baa5e commit 7d46291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -10152,7 +10152,7 @@ $as_echo_n "checking for thread local storage class... " >&6; }
TLS_CLASS="none"
for tls_class in "_Thread_local" "__thread" "__declspec(thread)"; do
for tls_class in "thread_local" "__thread" "_Thread_local" "__declspec(thread)"; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -2174,7 +2174,7 @@ if test "$ENABLE_THREAD_SYSTEM" != no; then

TLS_CLASS="none"

for tls_class in "_Thread_local" "__thread" "__declspec(thread)"; do
for tls_class in "thread_local" "__thread" "_Thread_local" "__declspec(thread)"; do
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
#include <stdlib.h>
] $tls_class [ int foo;
Expand Down

0 comments on commit 7d46291

Please sign in to comment.