From 477c024d93b31eef087dbb1a9a99a6ef2cb854c3 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 3c873232646c..159af7a02f46 100644 --- a/src/cmd/INIT/iffe.sh +++ b/src/cmd/INIT/iffe.sh @@ -3427,7 +3427,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 @@ -3718,7 +3718,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