summaryrefslogtreecommitdiff
path: root/include/demangle.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2003-07-06 21:44:55 +0000
committerH.J. Lu <hjl@lucon.org>2003-07-06 21:44:55 +0000
commitc54065c9d1125780534b6be2d0a9cbb6545b909a (patch)
tree96ec180d5eb0944b3d65faa9a018fa9a909472ab /include/demangle.h
parentdce9bedd9c213c399e700b1b5e06a0bd571fdb40 (diff)
downloadgdb-c54065c9d1125780534b6be2d0a9cbb6545b909a.tar.gz
2003-07-06 H.J. Lu <hongjiu.lu@intel.com>
* demangle.h: Support C++.
Diffstat (limited to 'include/demangle.h')
-rw-r--r--include/demangle.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/demangle.h b/include/demangle.h
index 21e9dd33820..bff266931c8 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -23,6 +23,10 @@
#include "ansidecl.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/* Options passed to cplus_demangle (in 2nd parameter). */
#define DMGL_NO_OPTS 0 /* For readability... */
@@ -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 */