From 11b85f03c2206c4f17c6fac43ab7b2966c57cbc5 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 11 Oct 2021 15:54:54 +0200 Subject: [PATCH] Add extern C guards in ovni.h --- ovni.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ovni.h b/ovni.h index 5992daa..2f348d0 100644 --- a/ovni.h +++ b/ovni.h @@ -1,6 +1,10 @@ #ifndef OVNI_H #define OVNI_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -136,5 +140,8 @@ void ovni_ev_jumbo(struct ovni_ev *ev, uint8_t *buf, uint32_t bufsize); int ovni_flush(); +#ifdef __cplusplus +} +#endif #endif /* OVNI_H */