aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/cgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/opcode/cgen.h')
-rw-r--r--include/opcode/cgen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h
index a23f0fd..0efbe79 100644
--- a/include/opcode/cgen.h
+++ b/include/opcode/cgen.h
@@ -27,6 +27,10 @@
/* ??? IWBN to replace bfd in the name. */
#include "bfd_stdint.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* ??? This file requires bfd.h but only to get bfd_vma.
Seems like an awful lot to require just to get such a fundamental type.
Perhaps the definition of bfd_vma can be moved outside of bfd.h.
@@ -1476,4 +1480,8 @@ extern void cgen_clear_signed_overflow_ok (CGEN_CPU_DESC);
/* Will an error message be generated if a signed field in an instruction overflows ? */
extern unsigned int cgen_signed_overflow_ok_p (CGEN_CPU_DESC);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* OPCODE_CGEN_H */