From 8cb861890a673799360be9aa18d8d3789396b9bb Mon Sep 17 00:00:00 2001 From: akshat Date: Tue, 11 Feb 2025 10:30:12 +0530 Subject: [PATCH] bugfix(wifi): Add missing brackets in the C++ guard Closes https://github.com/espressif/esp-idf/issues/14991 --- components/bt/common/osi/include/osi/fixed_pkt_queue.h | 4 ++++ components/bt/host/bluedroid/bta/include/bta/bta_ar_api.h | 6 +++++- .../bt/host/bluedroid/btc/profile/std/include/btc_av_api.h | 3 +++ components/wpa_supplicant/esp_supplicant/include/esp_wpa2.h | 3 +++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/components/bt/common/osi/include/osi/fixed_pkt_queue.h b/components/bt/common/osi/include/osi/fixed_pkt_queue.h index f4235ca5d9..e121235eda 100644 --- a/components/bt/common/osi/include/osi/fixed_pkt_queue.h +++ b/components/bt/common/osi/include/osi/fixed_pkt_queue.h @@ -76,4 +76,8 @@ void fixed_pkt_queue_unregister_dequeue(fixed_pkt_queue_t *queue); void fixed_pkt_queue_process(fixed_pkt_queue_t *queue); +#ifdef __cplusplus +} +#endif + #endif diff --git a/components/bt/host/bluedroid/bta/include/bta/bta_ar_api.h b/components/bt/host/bluedroid/bta/include/bta/bta_ar_api.h index 2823d674e5..20f1128119 100644 --- a/components/bt/host/bluedroid/bta/include/bta/bta_ar_api.h +++ b/components/bt/host/bluedroid/bta/include/bta/bta_ar_api.h @@ -18,7 +18,7 @@ /****************************************************************************** * - * This is the public interface file for the simulatenous advanced + * This is the public interface file for the simultaneous advanced * audio/video streaming (AV) source and sink of BTA, Broadcom's Bluetooth * application layer for mobile phones. * @@ -35,6 +35,10 @@ #if (BTA_AR_INCLUDED == TRUE) +#ifdef __cplusplus +extern "C" { +#endif + /***************************************************************************** ** Constants and data types *****************************************************************************/ diff --git a/components/bt/host/bluedroid/btc/profile/std/include/btc_av_api.h b/components/bt/host/bluedroid/btc/profile/std/include/btc_av_api.h index 72ee3bb714..57d14fbf2d 100644 --- a/components/bt/host/bluedroid/btc/profile/std/include/btc_av_api.h +++ b/components/bt/host/bluedroid/btc/profile/std/include/btc_av_api.h @@ -23,6 +23,9 @@ #include "stack/a2d_sbc.h" #if (BTC_AV_INCLUDED == TRUE) +#ifdef __cplusplus +extern "C" { +#endif /***************************************************************************** ** Constants and data types *****************************************************************************/ diff --git a/components/wpa_supplicant/esp_supplicant/include/esp_wpa2.h b/components/wpa_supplicant/esp_supplicant/include/esp_wpa2.h index 032af02ef3..0dc0f1b927 100644 --- a/components/wpa_supplicant/esp_supplicant/include/esp_wpa2.h +++ b/components/wpa_supplicant/esp_supplicant/include/esp_wpa2.h @@ -10,6 +10,9 @@ #pragma message("esp_wpa2.h is deprecated. Use esp_eap_client.h instead.") #include "esp_eap_client.h" +#ifdef __cplusplus +extern "C" { +#endif /** * @brief Enable wpa2 enterprise authentication.