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