aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorManfred Hollstein <manfred@gcc.gnu.org>1998-04-19 06:48:08 +0000
committerManfred Hollstein <manfred@gcc.gnu.org>1998-04-19 06:48:08 +0000
commit08fbf99d634dd593a8af2fd78a7185df1a8006b1 (patch)
treefc988e59b4a7aaf0a421047e8bed9fac0a27473e /gcc
parent4f1817ee4f8e9ccf661d33523dde9224dd99ed1e (diff)
downloadgcc-08fbf99d634dd593a8af2fd78a7185df1a8006b1.zip
gcc-08fbf99d634dd593a8af2fd78a7185df1a8006b1.tar.gz
gcc-08fbf99d634dd593a8af2fd78a7185df1a8006b1.tar.bz2
fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files.
a * fix-header.c (enum special_file): Undefine enumerators if they are already defined by include files. * fixproto (rel_source_file in unistd.h stdlib.h): Prefix file protection macro with '__' to not pollute user namespace. From-SVN: r19298
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixproto6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/fixproto b/gcc/fixproto
index dfeb596..cd495e6 100755
--- a/gcc/fixproto
+++ b/gcc/fixproto
@@ -267,8 +267,8 @@ do
rel_source_ident=`echo $rel_source_file | tr ./ __`
required_list=`eval echo '${required_'${rel_source_ident}'-}'`
cat >tmp.h <<EOF
-#ifndef ${rel_source_ident}
-#define ${rel_source_ident}
+#ifndef __${rel_source_ident}
+#define __${rel_source_ident}
EOF
if test $rel_source_file = stdlib.h
then
@@ -281,7 +281,7 @@ EOF
fi
cat >>tmp.h <<EOF
-#endif /* ${rel_source_ident} */
+#endif /* __${rel_source_ident} */
EOF
${FIX_HEADER} $rel_source_file tmp.h $abs_target_dir/$rel_source_file ${DEFINES} $include_path
rm tmp.h