[hackers] [scc] Add __SCC__ macro || Roberto E. Vargas Caballero
commit 5dc96d4078a27015fd1277d7779410a0498cbe2b
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jul 18 11:22:29 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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";
Received on Sat Jul 18 2015 - 18:41:14 CEST
This archive was generated by hypermail 2.3.0
: Sat Jul 18 2015 - 18:48:11 CEST