From cfe8fed0ff6ed1e626e5311f364cfb87f7bf7ae0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 6 Feb 1995 16:51:48 +0000 Subject: Only include and in for C++ From-SVN: r8873 --- gcc/fixincludes | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/fixincludes b/gcc/fixincludes index 059f73d..156afd8 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -2120,7 +2120,9 @@ if [ -r ${LIB}/$file ]; then true else echo "Fixing $file (needs stdio.h)" - echo '#include ' >>${LIB}/$file + echo '#ifdef __cplusplus +#include +#endif' >>${LIB}/$file fi fi if grep 'exit *(' ${LIB}/$file >/dev/null 2>/dev/null || @@ -2129,7 +2131,9 @@ if [ -r ${LIB}/$file ]; then true else echo "Fixing $file (needs stdlib.h)" - echo '#include ' >>${LIB}/$file + echo '#ifdef __cplusplus +#include +#endif' >>${LIB}/$file fi fi if cmp $file ${LIB}/$file >/dev/null 2>&1; then -- cgit v1.1