]> Savannah Git Hosting - gnulib.git/commitdiff
threads-h: Modernize configure test.
authorBruno Haible <bruno@clisp.org>
Tue, 5 Sep 2023 11:00:38 +0000 (13:00 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 14 Sep 2023 10:14:44 +0000 (12:14 +0200)
* m4/threads_h.m4 (gl_THREADS_H): In the test program, put the
'_Thread_local' storage class specifier before the type.

ChangeLog
m4/threads_h.m4

index 9c3eca693c9303de14ecb216bccaf109a0697df5..1e959d6d3ba96016198d91a208fc759a8bdc6d4c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-09-05  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        unistr/u{8,16,32}-strtok tests: Fix -Wanalyzer-allocation-size warnings.
index a029bc927833e0bb37740b94bf43be59ab6292c8..2db7e28c0ca7c12235c3b40eacee10cf6609dcef 100644 (file)
@@ -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;
           ]])],