diff --git a/platform/embedded/hal_audio.h b/platform/embedded/hal_audio.h index 93bead36a..ab78ce446 100644 --- a/platform/embedded/hal_audio.h +++ b/platform/embedded/hal_audio.h @@ -40,6 +40,10 @@ #include +#if defined __cplusplus +extern "C" { +#endif + /* * hal_audio.h * @@ -121,4 +125,8 @@ void hal_audio_source_stop(void); */ void hal_audio_source_close(void); +#if defined __cplusplus +} +#endif + #endif diff --git a/src/btstack_uart_block.h b/src/btstack_uart_block.h index 186e8bd6c..c3c17037d 100644 --- a/src/btstack_uart_block.h +++ b/src/btstack_uart_block.h @@ -47,6 +47,10 @@ #include #include "btstack_uart.h" +#if defined __cplusplus +extern "C" { +#endif + typedef btstack_uart_t btstack_uart_block_t; // existing block-only implementations @@ -59,4 +63,8 @@ static inline const btstack_uart_block_t * btstack_uart_block_posix_instance(voi return (const btstack_uart_block_t *) btstack_uart_posix_instance(); } +#if defined __cplusplus +} +#endif + #endif