aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/microblaze-dis.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index b400f5b..ddb04b8 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-19 Pedro Alves <palves@redhat.com>
+
+ * microblaze-dis.h [__cplusplus]: Wrap in extern "C".
+
2015-02-10 Pedro Alves <palves@redhat.com>
Tom Tromey <tromey@redhat.com>
diff --git a/opcodes/microblaze-dis.h b/opcodes/microblaze-dis.h
index a837ada..fd09745 100644
--- a/opcodes/microblaze-dis.h
+++ b/opcodes/microblaze-dis.h
@@ -22,6 +22,10 @@
#ifndef MICROBLAZE_DIS_H
#define MICROBLAZE_DIS_H 1
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern enum microblaze_instr microblaze_decode_insn (long, int *, int *,
int *, int *);
extern unsigned long microblaze_get_target_address (long, bfd_boolean, int,
@@ -31,4 +35,8 @@ extern enum microblaze_instr get_insn_microblaze (long, bfd_boolean *,
enum microblaze_instr_type *,
short *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* microblaze-dis.h */