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]

PATCH RFA: Remove extern "C" from java header file


The java frontend header file java/verify.h has an extern "C" wrapper.
This breaks when compiling java with C++.  I can't think of any reason
for having it. This patch removes it.  Bootstrapped and tested on
x86_64-unknown-linux-gnu.  OK for mainline?

Ian


2009-06-09  Ian Lance Taylor  <iant@google.com>

	* verify.h: Remove extern "C".


Index: java/verify.h
===================================================================
--- java/verify.h	(revision 148327)
+++ java/verify.h	(working copy)
@@ -1,5 +1,6 @@
 /* Declarations to interface gcj with bytecode verifier.
-   Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009
+   Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -26,11 +27,6 @@
 #ifndef GCC_VERIFY_H
 #define GCC_VERIFY_H
 
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
 #include "system.h"
 #include "coretypes.h"
 #include "jcf.h"
@@ -155,8 +151,4 @@
 
 int verify_method (vfy_method *meth);
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* ! GCC_VERIFY_H */

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