public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] termios.c fix macro test for __MAX_BAUD.
@ 2021-10-13 16:59 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2021-10-13 16:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:595922b25a790668824a61d11227b1881a78c17c
commit 595922b25a790668824a61d11227b1881a78c17c
Author: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Date: Wed Oct 13 17:57:49 2021 +0100
termios.c fix macro test for __MAX_BAUD.
gcc/m2/ChangeLog:
* gm2-libs-ch/termios.c (GetFlag): Corrected macro test
against absence of __MAX_BAUD.
Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Diff:
---
gcc/m2/gm2-libs-ch/termios.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/m2/gm2-libs-ch/termios.c b/gcc/m2/gm2-libs-ch/termios.c
index 0aae8ce00a1..1bb2bf1809b 100644
--- a/gcc/m2/gm2-libs-ch/termios.c
+++ b/gcc/m2/gm2-libs-ch/termios.c
@@ -873,7 +873,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-10-13 16:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 16:59 [gcc/devel/modula-2] termios.c fix macro test for __MAX_BAUD 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).