This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Support C++ in demanle.h
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 6 Jul 2003 08:22:05 -0700
- Subject: PATCH: Support C++ in demanle.h
This patch adds C++ support to demanle.h. OK to install?
H.J.
----
2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
* demangle.h: Support C++.
--- include/demangle.h.cplus 2002-08-31 23:49:03.000000000 -0700
+++ include/demangle.h 2003-07-06 08:09:58.000000000 -0700
@@ -21,6 +21,10 @@
#if !defined (DEMANGLE_H)
#define DEMANGLE_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include "ansidecl.h"
/* Options passed to cplus_demangle (in 2nd parameter). */
@@ -160,4 +164,8 @@ enum gnu_v3_dtor_kinds {
extern enum gnu_v3_dtor_kinds
is_gnu_v3_mangled_dtor PARAMS ((const char *name));
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* DEMANGLE_H */