shithub: scc

Download patch

ref: ba987573a5ba468d3f1e7237feaf092fc47a444a
parent: 32ceb290823b1ce38d54ab9117b9b2ff28c3a810
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Nov 1 14:00:19 EDT 2021

cc1: Enable use of macros in #include

Parameter of include must be expanded.

--- a/src/cmd/cc/cc1/cpp.c
+++ b/src/cmd/cc/cc1/cpp.c
@@ -479,6 +479,7 @@
 	if (cppoff)
 		return;
 
+	disexpand = 0;
 	namespace = NS_IDEN;
 	next();