add missing c++ guard

This commit is contained in:
Matthias Ringwald 2021-05-09 22:07:15 +02:00
parent 560d2a7afb
commit ea7d62f812
2 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,10 @@
#include <stdint.h>
#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

View File

@ -47,6 +47,10 @@
#include <stdint.h>
#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