diff mbox

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

Message ID mcrr5ek1tzj.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Nov. 17, 2010, 3:58 a.m. UTC
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
diff mbox

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"