shithub: scc

Download patch

ref: 5dc96d4078a27015fd1277d7779410a0498cbe2b
parent: 9051e2b39dc3488b33c454ec375465471f3c3eb6
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Jul 18 07:22:29 EDT 2015

Add __SCC__ macro

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

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -47,6 +47,7 @@
 	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";