]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/46650 (r167010 breaks --enable-build-with-cxx)
authorJack Howarth <howarth@bromo.med.uc.edu>
Mon, 13 Dec 2010 18:34:45 +0000 (18:34 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 13 Dec 2010 18:34:45 +0000 (18:34 +0000)
PR bootstrap/46650
* system.h: Include cstring for cxx bootstrap.

Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
From-SVN: r167764

gcc/ChangeLog
gcc/system.h

index f11527f0b2c5264746476b45af0d149feb2fedba..3c6ba19afc3c331f34c8e8cc4a75d06f2f845cdd 100644 (file)
@@ -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
index 3dc3b4e8d88915c4a46e58fa0ad9b799834b2c10..081e076fc28a04932ad498b8f2c9fb2d4445d217 100644 (file)
@@ -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