1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

iffe depends on cc -E not inserting newlines between tokens

Thanks to Andreas Schwab <schwab@suse.de> for the patch
This commit is contained in:
Siteshwar Vashisht 2017-05-15 20:56:58 +02:00
parent 3f54fd611f
commit e79c292950

View file

@ -3398,7 +3398,7 @@ $src
(eval "$src") <&$nullin || e=1 (eval "$src") <&$nullin || e=1
;; ;;
mac*|nomac*) 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 then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i
else e=1 else e=1
fi fi
@ -3689,7 +3689,7 @@ $inc
<<\"#define $v\">> $v <<\"/* native $v */\">> <<\"#define $v\">> $v <<\"/* native $v */\">>
<<\"#endif\">> <<\"#endif\">>
#endif" > $tmp.c #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 then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i > $tmp.t
if test -s $tmp.t if test -s $tmp.t
then success then success