diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1995-02-06 16:51:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1995-02-06 16:51:48 +0000 |
commit | cfe8fed0ff6ed1e626e5311f364cfb87f7bf7ae0 (patch) | |
tree | ca46aa144bd515a919fe3424d74fadd090045454 | |
parent | 8919037ceb84cd460c7faef1623acb3a4f27e310 (diff) | |
download | gcc-cfe8fed0ff6ed1e626e5311f364cfb87f7bf7ae0.zip gcc-cfe8fed0ff6ed1e626e5311f364cfb87f7bf7ae0.tar.gz gcc-cfe8fed0ff6ed1e626e5311f364cfb87f7bf7ae0.tar.bz2 |
Only include <stdio.h> and <stdlib.h> in <assert.h> for C++
From-SVN: r8873
-rwxr-xr-x | gcc/fixincludes | 8 |
1 files changed, 6 insertions, 2 deletions
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 <stdio.h>' >>${LIB}/$file + echo '#ifdef __cplusplus +#include <stdio.h> +#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 <stdlib.h>' >>${LIB}/$file + echo '#ifdef __cplusplus +#include <stdlib.h> +#endif' >>${LIB}/$file fi fi if cmp $file ${LIB}/$file >/dev/null 2>&1; then |