Patchwork [gccgo] Don't use extern "C" around #include of "filenames.h"

login
register
mail settings
Submitter Ian Taylor
Date Nov. 17, 2010, 3:58 a.m.
Message ID <mcrr5ek1tzj.fsf@google.com>
Download mbox | patch
Permalink /patch/71510/
State New
Headers show

Comments

Ian Taylor - Nov. 17, 2010, 3:58 a.m.
The header include/filenames.h has its own extern "C" wrapper, so there
is no need to use one in the Go frontend.  This patch removes it.
Committed to gccgo branch.

Ian

Patch

diff -r 8bf0b0e900e1 go/import.cc
--- a/go/import.cc	Tue Nov 16 19:49:28 2010 -0800
+++ b/go/import.cc	Tue Nov 16 19:55:32 2010 -0800
@@ -10,17 +10,7 @@ 
 #include <cstring>
 #include <unistd.h>
 
-#ifndef ENABLE_BUILD_WITH_CXX
-extern "C"
-{
-#endif
-
 #include "filenames.h"
-
-#ifndef ENABLE_BUILD_WITH_CXX
-}
-#endif
-
 #include "simple-object.h"
 
 #include "go-c.h"