From b767da733d09e7309c8e4700dacae239be5887d3 Mon Sep 17 00:00:00 2001 From: Jack Howarth Date: Mon, 13 Dec 2010 18:34:45 +0000 Subject: [PATCH] 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 From-SVN: r167764 --- gcc/ChangeLog | 6 ++++++ gcc/system.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f11527f0b2c5..3c6ba19afc3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-12-13 Jack Howarth + Joseph Myers + + PR bootstrap/46650 + * system.h: Include cstring for cxx bootstrap. + 2010-12-13 Jakub Jelinek PR lto/46879 diff --git a/gcc/system.h b/gcc/system.h index 3dc3b4e8d889..081e076fc28a 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 +#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 -- 2.47.2