Bluetooth: fix C++ linker errors

Add missing header guards.

Signed-off-by: Rihards Skuja <rihardssk@mikrotik.com>
This commit is contained in:
Rihards Skuja 2021-07-21 10:57:28 +03:00 committed by Christopher Friedt
commit 26beb415a5

View file

@ -23,6 +23,10 @@
#include <bluetooth/hci.h>
#include <sys/util.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Possible types of buffers passed around the Bluetooth stack */
enum bt_buf_type {
/** HCI command */
@ -155,4 +159,8 @@ static inline enum bt_buf_type bt_buf_get_type(struct net_buf *buf)
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_BUF_H_ */