forked from Imagelibrary/binutils-gdb
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:
@@ -21,6 +21,10 @@
|
||||
#ifndef opcode_tile_h
|
||||
#define opcode_tile_h
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef unsigned long long tilegx_bundle_bits;
|
||||
|
||||
|
||||
@@ -1301,4 +1305,8 @@ typedef tilegx_bundle_bits tile_bundle_bits;
|
||||
#define TILE_LOG2_BUNDLE_ALIGNMENT_IN_BYTES \
|
||||
TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* opcode_tilegx_h */
|
||||
|
||||
Reference in New Issue
Block a user