mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 15:44:32 +00:00
btstack_uart: add missing __cplusplus judgment
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
74b4d42a0c
commit
9e104a3cf6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user