aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/arc-ext.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index f3db0b2..19e0d1e 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2016-06-22 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * arc-ext.h: Wrap in extern C.
+
2016-06-21 Graham Markall <graham.markall@embecosm.com>
* arc-dis.c (arc_insn_length): Add comment on instruction length.
diff --git a/opcodes/arc-ext.h b/opcodes/arc-ext.h
index e92a350..9e41f5b 100644
--- a/opcodes/arc-ext.h
+++ b/opcodes/arc-ext.h
@@ -41,6 +41,10 @@
#include "opcode/arc.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define IGNORE_FIRST_OPD 1
/* Define this if we do not want to encode instructions based on the
@@ -131,4 +135,8 @@ extern struct arc_opcode *arcExtMap_genOpcode (const extInstruction_t *,
/* Dump function (for debugging). */
extern void dump_ARC_extmap (void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ARC_EXTENSIONS_H */