This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: 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 */


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