mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
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".
This commit is contained in:
@ -27,6 +27,10 @@
|
||||
/* ??? IWBN to replace bfd in the name. */
|
||||
#include "bfd_stdint.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* ??? This file requires bfd.h but only to get bfd_vma.
|
||||
Seems like an awful lot to require just to get such a fundamental type.
|
||||
Perhaps the definition of bfd_vma can be moved outside of bfd.h.
|
||||
@ -1476,4 +1480,8 @@ extern void cgen_clear_signed_overflow_ok (CGEN_CPU_DESC);
|
||||
/* Will an error message be generated if a signed field in an instruction overflows ? */
|
||||
extern unsigned int cgen_signed_overflow_ok_p (CGEN_CPU_DESC);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* OPCODE_CGEN_H */
|
||||
|
Reference in New Issue
Block a user