bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH] hamt: Use __GNUC_MINOR__, not  __GNUC_MINOR
@ 2023-02-13 12:17 ChuanGang Jiang
  2023-02-13 12:39 ` Bruno Haible
  0 siblings, 1 reply; 2+ messages in thread
From: ChuanGang Jiang @ 2023-02-13 12:17 UTC (permalink / raw)
  To: bug-gnulib@gnu.org

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

* 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

[-- Attachment #2: Type: text/html, Size: 2175 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hamt: Use __GNUC_MINOR__, not  __GNUC_MINOR
  2023-02-13 12:17 [PATCH] hamt: Use __GNUC_MINOR__, not __GNUC_MINOR ChuanGang Jiang
@ 2023-02-13 12:39 ` Bruno Haible
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2023-02-13 12:39 UTC (permalink / raw)
  To: bug-gnulib, ChuanGang Jiang

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  <tim.ruehsen@gmx.de>  (tiny change)

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-13 12:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 12:17 [PATCH] hamt: Use __GNUC_MINOR__, not __GNUC_MINOR ChuanGang Jiang
2023-02-13 12:39 ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).