scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 084f7cad65f54bf44837f6a00524ddc58241348e
parent b3b6ae58bc48acb7f2712cdb1c64116ff2335d9f
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu, 21 Jul 2016 14:19:41 +0200

[cpp] fix definition of standard macros

Define __STDC__, __STDC_HOSTED__, __SCC__ to 1 instead of empty

Diffstat:
Mcc1/cpp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }