Skip to content

Commit 20b3dd5

Browse files
committed
[nrf noup] Bluetooth: Temporarily add C++ over internal header file
This unblocks a specific use case where this header file is included. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent 39f9f79 commit 20b3dd5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

subsys/bluetooth/host/keys.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#include <zephyr/sys/util_macro.h>
2020
#include <zephyr/toolchain.h>
2121

22+
#ifdef __cplusplus
23+
extern "C" {
24+
#endif
25+
2226
/** @cond INTERNAL_HIDDEN */
2327

2428
enum bt_keys_type {
@@ -249,4 +253,8 @@ void bt_keys_show_sniffer_info(struct bt_keys *keys, void *data);
249253

250254
/** @endcond */
251255

256+
#ifdef __cplusplus
257+
}
258+
#endif
259+
252260
#endif /* ZEPHYR_SUBSYS_BLUETOOTH_HOST_KEYS_H_ */

0 commit comments

Comments
 (0)