aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-01-01 16:48:41 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-01-01 16:48:41 -0800
commit4ba0ff2dd1030bb12fb26c76302a11969e8b79e0 (patch)
tree8c19156c104af7a43bab6a4d0857f08142c27b19
parent315da535289d26c490d58f7cdadb24b0e1e0b63b (diff)
downloadgcc-4ba0ff2dd1030bb12fb26c76302a11969e8b79e0.zip
gcc-4ba0ff2dd1030bb12fb26c76302a11969e8b79e0.tar.gz
gcc-4ba0ff2dd1030bb12fb26c76302a11969e8b79e0.tar.bz2
(sunwindow/{win_cursor.h,win_lock.h}): Change invalid
#ifdef identifier `ecd.cursor' to `ecd_cursor'. From-SVN: r3049
-rwxr-xr-xgcc/fixincludes30
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 8d4f7b9..372fa47 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