Re: [PATCH] hamt: Use __GNUC_MINOR__, not __GNUC_MINOR

2023-02-13 Thread Bruno Haible
Thanks, applied.

Please send patches in plain-text mail, not HTML mail. Then it's easier
to apply.

> * lib/hamt.h:Use __GNUC_MINOR__, not  __GNUC_MINOR.

Note: This is not the first time this mistake occurred:

2017-09-12  Tim Rühsen(tiny change)

libc-config: Fix __GNUC_PREREQ macro.
* lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
__GNUC_MINOR.







[PATCH] hamt: Use __GNUC_MINOR__, not __GNUC_MINOR

2023-02-13 Thread ChuanGang Jiang
* lib/hamt.h:Use __GNUC_MINOR__, not  __GNUC_MINOR.
---
 lib/hamt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
--
2.36.1