From 9f636394acc3faff6d8377acbdb86289e5cdadf1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 5 Sep 2023 13:00:38 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ m4/threads_h.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c3eca693c..1e959d6d3b 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-04 Bruno Haible unistr/u{8,16,32}-strtok tests: Fix -Wanalyzer-allocation-size warnings. diff --git a/m4/threads_h.m4 b/m4/threads_h.m4 index a029bc9278..2db7e28c0c 100644 --- a/m4/threads_h.m4 +++ b/m4/threads_h.m4 @@ -1,4 +1,4 @@ -# threads_h.m4 serial 10.2 +# threads_h.m4 serial 10.3 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; ]])], -- 2.39.5