From 4ba0ff2dd1030bb12fb26c76302a11969e8b79e0 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 1 Jan 1993 16:48:41 -0800 Subject: [PATCH] (sunwindow/{win_cursor.h,win_lock.h}): Change invalid #ifdef identifier `ecd.cursor' to `ecd_cursor'. From-SVN: r3049 --- gcc/fixincludes | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gcc/fixincludes b/gcc/fixincludes index 8d4f7b99b63..372fa47ea28 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -290,6 +290,36 @@ EOF fi fi +# Fix these Sun OS files to avoid an invalid identifier in an #ifdef. +file=sunwindow/win_cursor.h +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then +# mkdir ${LIB}/sunwindow 2>/dev/null + cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" + chmod +w ${LIB}/$file 2>/dev/null +fi +if [ -r ${LIB}/$file ]; then + echo Fixing $file + sed -e "s/ecd.cursor/ecd_cursor/" ${LIB}/$file > ${LIB}/${file}.sed + rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + if cmp $file ${LIB}/$file >/dev/null 2>&1; then + rm ${LIB}/$file + fi +fi +file=sunwindow/win_lock.h +if [ -r $file ] && [ ! -r ${LIB}/$file ]; then +# mkdir ${LIB}/sunwindow 2>/dev/null + cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" + chmod +w ${LIB}/$file 2>/dev/null +fi +if [ -r ${LIB}/$file ]; then + echo Fixing $file + sed -e "s/ecd.cursor/ecd_cursor/" ${LIB}/$file > ${LIB}/${file}.sed + rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + if cmp $file ${LIB}/$file >/dev/null 2>&1; then + rm ${LIB}/$file + fi +fi + # Fix this Sun file to avoid interfering with stddef.h. file=sys/stdtypes.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then -- 2.30.2