]> 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>
Tue, 5 Sep 2023 11:00:38 +0000 (13:00 +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 fd31e2f31408eae3660572ab36b0e9187c0279e7..b0f16f2df9cfe11d4cf00d467f86bd17afd33b30 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-05  Bruno Haible  <bruno@clisp.org>
 
        Add info about recommended warning options.
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;
           ]])],