From f63c17760fab6fbf56ba500f7a8c746aa15b34a4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 12 Feb 2015 09:59:03 +0000 Subject: Wrap a few opcodes headers in extern "C" for C++ These are sufficient to link an --enable-targets=all GDB build in C++ mode, on x86_64 Fedora 20. include/opcode/ 2015-02-19 Pedro Alves * cgen.h [__cplusplus]: Wrap in extern "C". * msp430-decode.h [__cplusplus]: Likewise. * nios2.h [__cplusplus]: Likewise. * rl78.h [__cplusplus]: Likewise. * rx.h [__cplusplus]: Likewise. * tilegx.h [__cplusplus]: Likewise. opcodes/ 2015-02-19 Pedro Alves * microblaze-dis.h [__cplusplus]: Wrap in extern "C". --- opcodes/ChangeLog | 4 ++++ opcodes/microblaze-dis.h | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'opcodes') 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 + + * microblaze-dis.h [__cplusplus]: Wrap in extern "C". + 2015-02-10 Pedro Alves Tom Tromey 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 */ -- cgit v1.1