diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2012-03-02 07:13:55 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2012-03-02 07:13:55 +0000 |
commit | 1b6ce36fe853d15fa293adb229451e5a495ecac8 (patch) | |
tree | e985560be9110d458283492f3000892e803d40a1 /libstdc++-v3/include/c_std | |
parent | bd7a440b017a2f65e1aa7663d75a513a8ae009d1 (diff) | |
download | gcc-1b6ce36fe853d15fa293adb229451e5a495ecac8.zip gcc-1b6ce36fe853d15fa293adb229451e5a495ecac8.tar.gz gcc-1b6ce36fe853d15fa293adb229451e5a495ecac8.tar.bz2 |
re PR libstdc++/51785 (gets not anymore declared)
2012-03-01 Benjamin Kosnik <bkoz@redhat.com>
Ramana Radhakrishnan <ramana@gcc.gnu.org>
PR libstdc++/51785
* acinclude.m4 (GLIBCXX_CHECK_STDIO_PROTO): New.
* configure.ac: Call it.
* configure: Regenerate.
* config.h.in: Same.
* config/os/gnu-linux/os_defines.h: Conditionally undefine
_GLIBCXX_HAVE_GETS.
* include/c_global/cstdio: Conditionally declare deprecated gets.
* include/c_std/cstdio: Same.
Co-Authored-By: Ramana Radhakrishnan <ramana@gcc.gnu.org>
From-SVN: r184774
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r-- | libstdc++-v3/include/c_std/cstdio | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio index 510f599..1588fc9 100644 --- a/libstdc++-v3/include/c_std/cstdio +++ b/libstdc++-v3/include/c_std/cstdio @@ -1,7 +1,7 @@ // -*- C++ -*- forwarding header. // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, -// 2009, 2010 Free Software Foundation, Inc. +// 2009, 2010, 2012 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -45,6 +45,10 @@ #include <bits/c++config.h> #include <stdio.h> +#ifndef _GLIBCXX_HAVE_GETS +extern "C" extern char* gets (char* __s) __attribute__((deprecated)); +#endif + // Get rid of those macros defined in <stdio.h> in lieu of real functions. #undef clearerr #undef fclose |