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