From d10be0cb9e61f29a0de368ebcc78bba22a902ad5 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 15 Apr 2019 09:25:23 +0200 Subject: [PATCH] S12Z: s12z-opc.h: Add extern "C" bracketing opcodes/ * s12z-opc.h: Add extern "C" bracketing to help users who wish to use this interface in c++ code. --- opcodes/ChangeLog | 5 +++++ opcodes/s12z-opc.h | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 05d211b644..b4f85d36ac 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2019-04-24 John Darrington + + * s12z-opc.h: Add extern "C" bracketing to help + users who wish to use this interface in c++ code. + 2019-04-15 Thomas Preud'homme * arm-dis.c (coprocessor_opcodes): Document new %J and %K format diff --git a/opcodes/s12z-opc.h b/opcodes/s12z-opc.h index 04e15595b3..6508f71234 100644 --- a/opcodes/s12z-opc.h +++ b/opcodes/s12z-opc.h @@ -22,6 +22,11 @@ #include +#ifdef __cplusplus +extern "C" +{ +#endif + /* An abstraction used to read machine code from a source. */ struct mem_read_abstraction_base { @@ -262,6 +267,8 @@ struct memory_operand int decode_s12z (enum optr *myoperator, short *osize, int *n_operands, struct operand **operands, struct mem_read_abstraction_base *); - +#ifdef __cplusplus +} +#endif #endif /* S12Z_OPC_H */