This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Compilation Broken on *-rtems*
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: GCC List <gcc at gcc dot gnu dot org>
- Date: Mon, 11 Aug 2008 21:29:24 +0200
- Subject: Re: C++ Compilation Broken on *-rtems*
- References: <48A09178.3020905@oarcorp.com>
Hi,
c++locale.cc: In function 'void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, int* const&) [with _Tv = long double]':
c++locale.cc:167: error: 'sscanf' was not declared in this scope
Sorry, should be fixed in 138966.
Paolo.
////////////
2008-08-11 Paolo Carlini <paolo.carlini@oracle.com>
* config/locale/generic/c_locale.cc: Include <cstdio>.
Index: config/locale/generic/c_locale.cc
===================================================================
*** config/locale/generic/c_locale.cc (revision 138953)
--- config/locale/generic/c_locale.cc (working copy)
***************
*** 1,6 ****
// Wrapper for underlying C-language localization -*- C++ -*-
! // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
--- 1,6 ----
// Wrapper for underlying C-language localization -*- C++ -*-
! // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
***************
*** 38,43 ****
--- 38,44 ----
#include <cmath> // For isinf, finite, finitef, fabs
#include <cstdlib> // For strof, strtold
#include <cstring>
+ #include <cstdio>
#include <locale>
#include <limits>
#include <cstddef>