commit 084f7cad65f54bf44837f6a00524ddc58241348e
Author:     Quentin Rameau <[email protected]>
AuthorDate: Thu Jul 21 14:19:41 2016 +0200
Commit:     Quentin Rameau <[email protected]>
CommitDate: Thu Jul 21 14:20:40 2016 +0200

    [cpp] fix definition of standard macros
    
    Define __STDC__, __STDC_HOSTED__, __SCC__ to 1 instead of empty

diff --git a/cc1/cpp.c b/cc1/cpp.c
index d43628d..5e74037 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -88,7 +88,7 @@ icpp(void)
        symfile = lookup(NS_CPP, "__FILE__");
 
        for (bp = list; *bp; ++bp)
-               defdefine(*bp, NULL);
+               defdefine(*bp, "1");
 
        ncmdlines = 0;
 }

Reply via email to