diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index 63fe454e528..67b4e41f41e 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,7 @@ +2015-10-07 Yao Qi + + * aarch64.h [__cplusplus]: Wrap in extern "C". + 2015-10-07 Claudiu Zissulescu Cupertino Miranda diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index 29be879f016..a8b1f8953ee 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -27,6 +27,10 @@ #include #include +#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 */