This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gccgo] Don't use extern "C" around #include of "filenames.h"
- From: Ian Lance Taylor <iant at google dot com>
- To: gcc-patches at gcc dot gnu dot org, gofrontend-dev at googlegroups dot com
- Date: Tue, 16 Nov 2010 19:58:40 -0800
- Subject: [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"