This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ Compilation Broken on *-rtems*


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]