From: Bruno Haible Date: Tue, 5 Sep 2023 11:00:38 +0000 (+0200) Subject: threads-h: Modernize configure test. X-Git-Tag: v1.0~815 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=761bc8574944704b4482b2c637d7bb0dffe033e1;p=gnulib.git threads-h: Modernize configure test. * m4/threads_h.m4 (gl_THREADS_H): In the test program, put the '_Thread_local' storage class specifier before the type. --- diff --git a/ChangeLog b/ChangeLog index fd31e2f314..b0f16f2df9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-09-05 Bruno Haible + + threads-h: Modernize configure test. + * m4/threads_h.m4 (gl_THREADS_H): In the test program, put the + '_Thread_local' storage class specifier before the type. + 2023-09-05 Bruno Haible Add info about recommended warning options. diff --git a/m4/threads_h.m4 b/m4/threads_h.m4 index 1c63c7e1b7..e1dc3b1be1 100644 --- a/m4/threads_h.m4 +++ b/m4/threads_h.m4 @@ -1,4 +1,4 @@ -# threads_h.m4 serial 13 +# threads_h.m4 serial 14 dnl Copyright (C) 2019-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -110,7 +110,7 @@ AC_DEFUN_ONCE([gl_THREADS_H], else AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([gl_THREAD_LOCAL_DEFINITION[ - int _Thread_local x; + _Thread_local int x; ]], [[ x = 42; ]])],