shithub: scc

Download patch

ref: 65a354524234ab1bc797faadd25dc30fc02b6a9a
parent: 8379c7f20b9346a7cd69808c58661bfc2e0d39f5
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Oct 30 09:13:40 EDT 2021

cc1: Fix include errors

The macros to signal an error when a file is not found in an
inclusion path were inverted making that any file not found
in the first path was generating an inclusion error.

--- a/src/cmd/cc/cc1/cc1.h
+++ b/src/cmd/cc/cc1/cc1.h
@@ -5,8 +5,8 @@
 
 #define NR_USWITCHES 20
 
-#define FAIL   0
-#define NOFAIL 1
+#define FAIL   1
+#define NOFAIL 0
 
 /*
  * Definition of enumerations