public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/gaius/heads/devel/modula-2)] Bugfix modula2/101392 correct preprocessor defined guard.
@ 2021-08-15 15:05 Gaius Mulley
  0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2021-08-15 15:05 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:69f1a0830ff2bab744ae738e95de199f36ec9b54

commit 69f1a0830ff2bab744ae738e95de199f36ec9b54
Author: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Date:   Sun Aug 15 16:01:52 2021 +0100

    Bugfix modula2/101392 correct preprocessor defined guard.
    
    2021-08-15  Gaius Mulley  <gaius.mulley@southwales.ac.uk>
    
    gcc/m2/ChangeLog:
    
            * m2-boot-ch/Gtermios.c (GetFlag): Correct guard using
            defined(__MAX_BAUD).  (SetFlag): Correct guard using
            defined(__MAX_BAUD).
    
    Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>

Diff:
---
 gcc/m2/mc-boot-ch/Gtermios.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/m2/mc-boot-ch/Gtermios.c b/gcc/m2/mc-boot-ch/Gtermios.c
index 1a16b5ae544..708bc30de4f 100644
--- a/gcc/m2/mc-boot-ch/Gtermios.c
+++ b/gcc/m2/mc-boot-ch/Gtermios.c
@@ -868,7 +868,7 @@ int EXPORT (GetFlag) (struct termios *t, Flag f, int *b)
       return 0;
 #endif
     case maxbaud:
-#if defined(MAX)
+#if defined(__MAX_BAUD)
       *b = ((t->c_cflag & __MAX_BAUD) == __MAX_BAUD);
       return 1;
 #else


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-15 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-15 15:05 [gcc(refs/users/gaius/heads/devel/modula-2)] Bugfix modula2/101392 correct preprocessor defined guard Gaius Mulley

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).