aboutsummaryrefslogtreecommitdiff
path: root/include/opcode/ppc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/opcode/ppc.h')
-rw-r--r--include/opcode/ppc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/opcode/ppc.h b/include/opcode/ppc.h
index df985eb..628a7a1 100644
--- a/include/opcode/ppc.h
+++ b/include/opcode/ppc.h
@@ -24,6 +24,10 @@
#include "bfd_stdint.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef uint64_t ppc_cpu_t;
/* The opcode table is an array of struct powerpc_opcode. */
@@ -437,4 +441,8 @@ ppc_optional_operand_value (const struct powerpc_operand *operand)
return 0;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* PPC_H */