btstack_uart: add missing __cplusplus judgment

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
pengyiqiang 2023-03-03 16:00:53 +08:00 committed by Matthias Ringwald
parent 74b4d42a0c
commit 9e104a3cf6
2 changed files with 16 additions and 0 deletions

View File

@ -48,6 +48,10 @@
#include <stdint.h>
#include "btstack_config.h"
#if defined __cplusplus
extern "C" {
#endif
#define BTSTACK_UART_PARITY_OFF 0
#define BTSTACK_UART_PARITY_EVEN 1
#define BTSTACK_UART_PARITY_ODD 2
@ -184,4 +188,8 @@ typedef struct {
// common implementations
const btstack_uart_t * btstack_uart_posix_instance(void);
#if defined __cplusplus
}
#endif
#endif

View File

@ -51,6 +51,10 @@
#include <stdint.h>
#include "btstack_uart.h"
#if defined __cplusplus
extern "C" {
#endif
/* API_START */
/**
@ -62,4 +66,8 @@ const btstack_uart_t * btstack_uart_slip_wrapper_instance(const btstack_uart_t *
/* API_END */
#if defined __cplusplus
}
#endif
#endif