aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/msp430-decode.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-02-12 09:59:03 +0000
committerPedro Alves <palves@redhat.com>2015-02-19 22:45:47 +0000
commitf63c17760fab6fbf56ba500f7a8c746aa15b34a4 (patch)
tree7bba01d309f4181669a16387647f39b1884dca9b /include/opcode/msp430-decode.h
parent07df97c8578023d1c9313bcec8aceef14de3e90b (diff)
downloadgdb-f63c17760fab6fbf56ba500f7a8c746aa15b34a4.zip
gdb-f63c17760fab6fbf56ba500f7a8c746aa15b34a4.tar.gz
gdb-f63c17760fab6fbf56ba500f7a8c746aa15b34a4.tar.bz2
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 <palves@redhat.com> * 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 <palves@redhat.com> * microblaze-dis.h [__cplusplus]: Wrap in extern "C".
Diffstat (limited to 'include/opcode/msp430-decode.h')
-rw-r--r--include/opcode/msp430-decode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/opcode/msp430-decode.h b/include/opcode/msp430-decode.h
index 3960278..3edd3f2 100644
--- a/include/opcode/msp430-decode.h
+++ b/include/opcode/msp430-decode.h
@@ -19,6 +19,10 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum
{
MSO_unknown,
@@ -128,3 +132,7 @@ typedef struct
} MSP430_Opcode_Decoded;
int msp430_decode_opcode (unsigned long, MSP430_Opcode_Decoded *, int (*)(void *), void *);
+
+#ifdef __cplusplus
+}
+#endif