Skip to content

Commit

Permalink
bluetooth: Add extern C to ble_util.h
Browse files Browse the repository at this point in the history
Add extern C to ble_util.h.
  • Loading branch information
SPRESENSE committed Nov 26, 2024
1 parent 3958d0e commit 6c10c8a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sdk/modules/include/bluetooth/ble_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
#include <bluetooth/ble_gatt.h>
#include <bluetooth/hal/bt_if.h>

#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif

/****************************************************************************
* Public Functions Prototypes
****************************************************************************/
Expand Down Expand Up @@ -302,4 +310,9 @@ int bleutil_get_manufacturer_specific_data(uint8_t *data,
uint8_t **specific_data,
uint8_t *specific_datalen);

#undef EXTERN
#ifdef __cplusplus
}
#endif

#endif /* __SDK_MODULES_INCLUDE_BLUETOOTH_BLE_UTIL_H */

0 comments on commit 6c10c8a

Please sign in to comment.