Adding `extern "C"` to sbp.h for inclusion into C++ programs
#ifndef LIBSBP_SBP_H
#define LIBSBP_SBP_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "common.h"
/** \addtogroup sbp
@@ -84,5 +88,9 @@ s8 sbp_process_payload(sbp_state_t *s, u16 sender_id, u16 msg_type, u8 msg_len,
s8 sbp_send_message(sbp_state_t *s, u16 msg_type, u16 sender_id, u8 len, u8 *payload,
u32 (*write)(u8 *buff, u32 n, void* context));
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LIBSBP_SBP_H */
