From c930fa03dc3524c1149351fed34ef5e9d918707d Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Sun, 18 Aug 2019 18:13:53 +0200 Subject: [PATCH] Make header compatible with C++ --- fadec.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fadec.h b/fadec.h index 6c09855..9209aa7 100644 --- a/fadec.h +++ b/fadec.h @@ -5,6 +5,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { FD_REG_R0 = 0, FD_REG_R1, FD_REG_R2, FD_REG_R3, FD_REG_R4, FD_REG_R5, FD_REG_R6, FD_REG_R7, @@ -198,4 +202,8 @@ void fd_format(const FdInstr* instr, char* buf, size_t len); * Only valid if FD_OP_TYPE == FD_OT_IMM **/ #define FD_OP_IMM(instr,idx) ((instr)->imm) +#ifdef __cplusplus +} +#endif + #endif