aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/ip2k-opc.h')
-rw-r--r--opcodes/ip2k-opc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes/ip2k-opc.h b/opcodes/ip2k-opc.h
index 6f097bcf07d..4443f97a8b9 100644
--- a/opcodes/ip2k-opc.h
+++ b/opcodes/ip2k-opc.h
@@ -25,6 +25,10 @@ This file is part of the GNU Binutils and/or GDB, the GNU debugger.
#ifndef IP2K_OPC_H
#define IP2K_OPC_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* -- opc.h */
/* Check applicability of instructions against machines. */
@@ -115,4 +119,8 @@ struct cgen_fields
}
+ #ifdef __cplusplus
+ }
+ #endif
+
#endif /* IP2K_OPC_H */