Patchwork [v3] libstdc++/51785

login
register
mail settings
Submitter Benjamin Kosnik
Date March 2, 2012, 4:47 p.m.
Message ID <20120302084738.52681eaf@adair>
Download mbox | patch
Permalink /patch/144282/
State New
Headers show

Comments

Benjamin Kosnik - March 2, 2012, 4:47 p.m.
... removes extra "extern."

-benjamin

Patch

2012-03-02  Benjamin Kosnik  <bkoz@redhat.com>

	    * include/c_global/cstdio: Remove extraneous extern.
	    * include/c_std/cstdio: Same.

diff --git a/libstdc++-v3/include/c_global/cstdio b/libstdc++-v3/include/c_global/cstdio
index d11743a..e648475 100644
--- a/libstdc++-v3/include/c_global/cstdio
+++ b/libstdc++-v3/include/c_global/cstdio
@@ -47,7 +47,7 @@ 
 #define _GLIBCXX_CSTDIO 1
 
 #ifndef _GLIBCXX_HAVE_GETS
-extern "C" extern char* gets (char* __s) __attribute__((deprecated));
+extern "C" char* gets (char* __s) __attribute__((deprecated));
 #endif
 
 // Get rid of those macros defined in <stdio.h> in lieu of real functions.
diff --git a/libstdc++-v3/include/c_std/cstdio b/libstdc++-v3/include/c_std/cstdio
index 1588fc9..d4f4732 100644
--- a/libstdc++-v3/include/c_std/cstdio
+++ b/libstdc++-v3/include/c_std/cstdio
@@ -46,7 +46,7 @@ 
 #include <stdio.h>
 
 #ifndef _GLIBCXX_HAVE_GETS
-extern "C" extern char* gets (char* __s) __attribute__((deprecated));
+extern "C" char* gets (char* __s) __attribute__((deprecated));
 #endif
 
 // Get rid of those macros defined in <stdio.h> in lieu of real functions.