This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
PATCH RFA: Remove extern "C" from java header file
- From: Ian Lance Taylor <iant at google dot com>
- From: Ian Lance Taylor <ian at airs dot com>
- To: java-patches at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 09 Jun 2009 18:58:29 -0700
- Subject: 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 */