This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] [ARC] C++ compatibility for arc-dis.h
- From: Anton Kolesov <Anton dot Kolesov at synopsys dot com>
- To: binutils at sourceware dot org
- Cc: Anton Kolesov <Anton dot Kolesov at synopsys dot com>, Francois dot Bedard at synopsys dot com, Claudiu dot Zissulescu at synopsys dot com, Cupertino Miranda <Cupertino dot Miranda at synopsys dot com>
- Date: Mon, 22 Aug 2016 20:38:05 +0300
- Subject: [PATCH] [ARC] C++ compatibility for arc-dis.h
- Authentication-results: sourceware.org; auth=none
GDB uses arc-dis.h and it is a C++ application, so header should use
`extern "C"`.
opcodes/
* arc-dis.h: Wrap around in extern "C".
---
opcodes/arc-dis.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/opcodes/arc-dis.h b/opcodes/arc-dis.h
index a588f97..9abfd94 100644
--- a/opcodes/arc-dis.h
+++ b/opcodes/arc-dis.h
@@ -22,6 +22,10 @@
#ifndef ARCDIS_H
#define ARCDIS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
enum ARC_Debugger_OperandType
{
ARC_UNDEFINED,
@@ -102,4 +106,9 @@ struct arcDisState
struct arcDisState
arcAnalyzeInstr (bfd_vma memaddr, struct disassemble_info *);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
--
2.8.1