From e79c29295092fe2b2282d134e2b7cce32ec9dcac Mon Sep 17 00:00:00 2001 From: Siteshwar Vashisht Date: Mon, 15 May 2017 20:56:58 +0200 Subject: [PATCH] iffe depends on cc -E not inserting newlines between tokens Thanks to Andreas Schwab for the patch --- src/cmd/INIT/iffe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/INIT/iffe.sh b/src/cmd/INIT/iffe.sh index 29c4d8667..46b9d77c7 100644 --- a/src/cmd/INIT/iffe.sh +++ b/src/cmd/INIT/iffe.sh @@ -3398,7 +3398,7 @@ $src (eval "$src") <&$nullin || e=1 ;; mac*|nomac*) - if compile $cc -E $tmp.c <&$nullin >$tmp.i + if compile $cc -E -P $tmp.c <&$nullin >$tmp.i then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i else e=1 fi @@ -3689,7 +3689,7 @@ $inc <<\"#define $v\">> $v <<\"/* native $v */\">> <<\"#endif\">> #endif" > $tmp.c - if compile $cc -E $tmp.c <&$nullin >$tmp.i + if compile $cc -E -P $tmp.c <&$nullin >$tmp.i then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i > $tmp.t if test -s $tmp.t then success