[gcc(refs/users/gaius/heads/devel/modula-2)] Bugfix modula2/101392 correct preprocessor defined guard.

Gaius Mulley gaius@gcc.gnu.org
Sun Aug 15 15:05:53 GMT 2021


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


More information about the Gcc-cvs mailing list