diff options
author | John Darrington <john@darrington.wattle.id.au> | 2019-04-15 09:25:23 +0200 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2019-04-24 10:33:52 +0200 |
commit | d10be0cb9e61f29a0de368ebcc78bba22a902ad5 (patch) | |
tree | 919ec774f20cb5ebad1b83180515810aa2e98d84 /opcodes/s12z-opc.h | |
parent | 05b1991f1a942f9d13b5363fb4c05e34ea44ef57 (diff) | |
download | gdb-d10be0cb9e61f29a0de368ebcc78bba22a902ad5.zip gdb-d10be0cb9e61f29a0de368ebcc78bba22a902ad5.tar.gz gdb-d10be0cb9e61f29a0de368ebcc78bba22a902ad5.tar.bz2 |
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.
Diffstat (limited to 'opcodes/s12z-opc.h')
-rw-r--r-- | opcodes/s12z-opc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/opcodes/s12z-opc.h b/opcodes/s12z-opc.h index 04e1559..6508f71 100644 --- a/opcodes/s12z-opc.h +++ b/opcodes/s12z-opc.h @@ -22,6 +22,11 @@ #include <stdbool.h> +#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 */ |