diff --git a/inc/pbuf.h b/inc/pbuf.h index 8974457..b44d18a 100644 --- a/inc/pbuf.h +++ b/inc/pbuf.h @@ -8,6 +8,12 @@ #include +#ifdef __cplusplus +extern "C" +{ +#endif + + typedef void (*pbuf_callback_t)(void); //function pointer that will be called when a pbuf is freed in this pool struct pbuf_pool_s; @@ -138,5 +144,9 @@ } */ +#ifdef __cplusplus +} +#endif + #endif