]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
S12Z: s12z-opc.h: Add extern "C" bracketing
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 15 Apr 2019 07:25:23 +0000 (09:25 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 24 Apr 2019 08:33:52 +0000 (10:33 +0200)
opcodes/
* s12z-opc.h: Add extern "C" bracketing to help
  users who wish to use this interface in c++ code.

opcodes/ChangeLog
opcodes/s12z-opc.h

index 05d211b644546dc63ca2601a76cfc7afbe87cb1c..b4f85d36ac1d0b4041d6176532d4820673f5f952 100644 (file)
@@ -1,3 +1,8 @@
+2019-04-24  John Darrington  <john@darrington.wattle.id.au>
+
+        * 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  <thomas.preudhomme@arm.com>
 
        * arm-dis.c (coprocessor_opcodes): Document new %J and %K format
index 04e15595b3876279877b43a69d86ae1d12ae8b5e..6508f712340dc6094ac65534248aaa87bda437c8 100644 (file)
 
 #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  */