]> Savannah Git Hosting - gnulib.git/commitdiff
hamt: Detect GCC version correctly.
authorChuanGang Jiang <jiangchuanganghw@outlook.com>
Mon, 13 Feb 2023 12:35:43 +0000 (13:35 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 2 Mar 2023 21:04:12 +0000 (22:04 +0100)
* lib/hamt.h:Use __GNUC_MINOR__, not  __GNUC_MINOR.

ChangeLog
lib/hamt.h

index 1e28b4ae9781ad9894131406e58cf4b8ca7cad93..fe1b99629fdfb13654dce501ccc5c55cf58d3052 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-13  ChuanGang Jiang  <jiangchuanganghw@outlook.com>  (tiny change)
+
+       hamt: Detect GCC version correctly.
+       * lib/hamt.h:Use __GNUC_MINOR__, not  __GNUC_MINOR.
+
 2023-02-11  Bruno Haible  <bruno@clisp.org>
 
        terminfo, termcap: Avoid wrong configure result with clang ≥ 15.
index d685bb6ee7b4519ed44676b324bd09d130daa414..7a85e2ef6d03c9ef54b8708df713be7804c844aa 100644 (file)
@@ -1,5 +1,5 @@
 /* (Persistent) hash array mapped tries.
-   Copyright (C) 2021-2022 Free Software Foundation, Inc.
+   Copyright (C) 2021-2023 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@ _GL_INLINE_HEADER_BEGIN
    We can define it only when the compiler supports _Atomic.  For GCC,
    it is supported starting with GCC 4.9.  */
 
-#if (__GNUC__ + (__GNUC_MINOR >= 9) > 4) \
+#if (__GNUC__ + (__GNUC_MINOR__ >= 9) > 4) \
     && __STDC_VERSION__ >= 201112L && !defined __STD_NO_ATOMICS__ \
     && !defined __cplusplus
 # define GL_HAMT_THREAD_SAFE 1