commit 5dc96d4078a27015fd1277d7779410a0498cbe2b
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Jul 18 11:22:29 2015 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Sat Jul 18 11:22:29 2015 +0200

    Add __SCC__ macro
    
    This macro communicates to the source file being compiled
    that scc is compiling it.

diff --git a/cc1/cpp.c b/cc1/cpp.c
index b3015b5..e6724c1 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -47,6 +47,7 @@ icpp(void)
        strftime(stime, sizeof(stime), "-1#\"%H:%M:%S\"", tm);
 
        defmacro("__STDC__")->u.s = "-1#1";
+       defmacro("__SCC__")->u.s = "-1#1";
        defmacro("__DATE__")->u.s = sdate;
        defmacro("__TIME__")->u.s = stime;
        defmacro("__STDC_HOSTED__")->u.s = "-1#1";

Reply via email to