This is the mail archive of the gcc-patches@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]

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


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 -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"

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