diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2010-12-13 18:34:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2010-12-13 18:34:45 +0000 |
commit | b767da733d09e7309c8e4700dacae239be5887d3 (patch) | |
tree | 854a3a8731139a73d382b60970c2475da09b4902 /gcc | |
parent | e2d3a4bba91302346202e83b4c79a4d2c68d856c (diff) | |
download | gcc-b767da733d09e7309c8e4700dacae239be5887d3.zip gcc-b767da733d09e7309c8e4700dacae239be5887d3.tar.gz gcc-b767da733d09e7309c8e4700dacae239be5887d3.tar.bz2 |
re PR bootstrap/46650 (r167010 breaks --enable-build-with-cxx)
PR bootstrap/46650
* system.h: Include cstring for cxx bootstrap.
Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r167764
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/system.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f11527f..3c6ba19 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu> + Joseph Myers <joseph@codesourcery.com> + + PR bootstrap/46650 + * system.h: Include cstring for cxx bootstrap. + 2010-12-13 Jakub Jelinek <jakub@redhat.com> PR lto/46879 diff --git a/gcc/system.h b/gcc/system.h index 3dc3b4e..081e076 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -190,6 +190,10 @@ extern int fprintf_unlocked (FILE *, const char *, ...); extern int errno; #endif +#ifdef __cplusplus +# include <cstring> +#endif + /* Some of glibc's string inlines cause warnings. Plus we'd rather rely on (and therefore test) GCC's string builtins. */ #define __NO_STRING_INLINES |