summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/hamt.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a0829a4a33..3446b572ad 100644
--- 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.
diff --git a/lib/hamt.h b/lib/hamt.h
index 6263b405bf..36142418d3 100644
--- a/lib/hamt.h
+++ b/lib/hamt.h
@@ -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