This is the mail archive of the binutils-cvs@sourceware.org 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]

[binutils-gdb] [ARC] C++ compatibility for arc-dis.h


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ab548d2db9ac35675d1b700ecbf007ae0cf3d83d

commit ab548d2db9ac35675d1b700ecbf007ae0cf3d83d
Author: Anton Kolesov <Anton.Kolesov@synopsys.com>
Date:   Tue May 31 18:40:09 2016 +0300

    [ARC] C++ compatibility for arc-dis.h
    
    opcodes/
    2016-08-24  Anton Kolesov  <Anton.Kolesov@synopsys.com>
    
    	* arc-dis.h: Wrap around in extern "C".
    
    Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>

Diff:
---
 opcodes/ChangeLog | 4 ++++
 opcodes/arc-dis.h | 9 +++++++++
 2 files changed, 13 insertions(+)

diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index b5dbc41..4b17726 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2016-08-24  Anton Kolesov  <Anton.Kolesov@synopsys.com>
+
+	* arc-dis.h: Wrap around in extern "C".
+
 2016-08-23  Richard Sandiford  <richard.sandiford@arm.com>
 
 	* aarch64-tbl.h (V8_2_INSN): New macro.
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


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