]> 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 09:47:33 +0000 (11:47 +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 1d6239beec95e5ae8e07f31d12ffb3bc0873bbb1..ed73999218b93da2914e71508e4e6b3e51078f16 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 1c63c7e1b798b83e2d2796f30b0e850ebcb6a7d8..e1dc3b1be10b6e9fe2fda8a89e7c1deaa5882fd1 100644 (file)
@@ -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;
           ]])],