summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChuanGang Jiang <jiangchuanganghw@outlook.com>2023-02-13 13:35:43 +0100
committerBruno Haible <bruno@clisp.org>2023-02-13 13:36:09 +0100
commit41d5dae3b7d239f167f09e4398f3970845a0ddc0 (patch)
tree51f37f60c6046f0cbf0d913909d263649b76074e /lib
parentf2b8ad906cbc861552a64e3804e5851c323cbac7 (diff)
downloadgnulib-41d5dae3b7d239f167f09e4398f3970845a0ddc0.tar.gz
hamt: Detect GCC version correctly.
* lib/hamt.h:Use __GNUC_MINOR__, not __GNUC_MINOR.
Diffstat (limited to 'lib')
-rw-r--r--lib/hamt.h2
1 files changed, 1 insertions, 1 deletions
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