diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-10-07 12:35:46 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-10-07 15:07:14 +0100 |
commit | d3e12b29aef25bc9d1830b0a05643b11296f1b8f (patch) | |
tree | e6984e2c0d5250e29801e16158b256d9db76aa35 | |
parent | 886a250647ac0c608f20a7007fc2167a70f64e20 (diff) | |
download | gdb-d3e12b29aef25bc9d1830b0a05643b11296f1b8f.zip gdb-d3e12b29aef25bc9d1830b0a05643b11296f1b8f.tar.gz gdb-d3e12b29aef25bc9d1830b0a05643b11296f1b8f.tar.bz2 |
Wrap include/opcode/aarch64.h in extern "C" for C++
This is sufficient to link an aarch64 GDB built in C++ mode. Pedro
did something similar in Feb
https://sourceware.org/ml/binutils/2015-02/msg00176.html
include/opcode/
2015-10-07 Yao Qi <yao.qi@linaro.org>
* aarch64.h [__cplusplus]: Wrap in extern "C".
-rw-r--r-- | include/opcode/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/aarch64.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index 63fe454..67b4e41 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,7 @@ +2015-10-07 Yao Qi <yao.qi@linaro.org> + + * aarch64.h [__cplusplus]: Wrap in extern "C". + 2015-10-07 Claudiu Zissulescu <claziss@synopsys.com> Cupertino Miranda <cmiranda@synopsys.com> diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index 29be879..a8b1f89 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -27,6 +27,10 @@ #include <assert.h> #include <stdlib.h> +#ifdef __cplusplus +extern "C" { +#endif + /* The offset for pc-relative addressing is currently defined to be 0. */ #define AARCH64_PCREL_OFFSET 0 @@ -964,4 +968,8 @@ aarch64_verbose (const char *, ...) __attribute__ ((format (printf, 1, 2))); #define DEBUG_TRACE_IF(C, M, ...) ; #endif /* DEBUG_AARCH64 */ +#ifdef __cplusplus +} +#endif + #endif /* OPCODE_AARCH64_H */ |