]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
hamt: Fix compilation error on MSVC (regression 2026-08-10).
authorBruno Haible <bruno@clisp.org>
Wed, 12 Aug 2026 10:14:51 +0000 (12:14 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 12 Aug 2026 10:14:51 +0000 (12:14 +0200)
* lib/hamt.h (HAVE_C11__ATOMIC): Add parentheses to #if expression.

ChangeLog
lib/hamt.h

index 2f90aa99c3c1b646bd7afaa76da9940ebc440fd1..b4916c518e9dfc2cd2c92a8b2612223e03cf175c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-08-12  Bruno Haible  <bruno@clisp.org>
+
+       hamt: Fix compilation error on MSVC (regression 2026-08-10).
+       * lib/hamt.h (HAVE_C11__ATOMIC): Add parentheses to #if expression.
+
 2026-08-12  Bruno Haible  <bruno@clisp.org>
 
        hamt: Fix compilation error (regression 2026-08-10).
index 84303138118a0205b3059c77b113cf2ce4bbd903..0e4ccc603e74f31b2612223095bb07c87335a79b 100644 (file)
@@ -68,13 +68,14 @@ _GL_INLINE_HEADER_BEGIN
 #ifndef HAVE_C11__ATOMIC
 # if (!defined __STDC_NO_ATOMICS__ && !defined __cplusplus \
       && (defined __apple_build_version__ ? 8000000 <= __apple_build_version__ \
-          : defined __clang__ ? 4 <= __clang_major__ \
-          : defined _MSC_VER ? 1935 <= _MSC_VER \
-          : defined __NVCOMPILER \
-          ? 21 < __NVCOMPILER_MAJOR__ + (3 <= __NVCOMPILER_MINOR__) \
-          : defined __GNUC__ ? 4 < __GNUC__ + (9 <= __GNUC_MINOR__) \
-          : (!defined __xlC__ && !defined __PGI \
-             && defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)))
+          : (defined __clang__ ? 4 <= __clang_major__ \
+             : (defined _MSC_VER ? 1935 <= _MSC_VER \
+                : (defined __NVCOMPILER \
+                   ? 21 < __NVCOMPILER_MAJOR__ + (3 <= __NVCOMPILER_MINOR__) \
+                   : (defined __GNUC__ ? 4 < __GNUC__ + (9 <= __GNUC_MINOR__) \
+                      : (!defined __xlC__ && !defined __PGI \
+                         && defined __STDC_VERSION__ \
+                         && 201112 <= __STDC_VERSION__)))))))
 #  define HAVE_C11__ATOMIC 1
 # else
 #  define HAVE_C11__ATOMIC 0