From c6a6475492fdbb9e7bdcedda99ecddec57ee46c4 Mon Sep 17 00:00:00 2001 From: lpbeliveau-silabs Date: Thu, 18 Jul 2024 11:10:48 -0400 Subject: [PATCH] Grouped extern C statements --- src/platform/silabs/efr32/ThreadStackManagerImpl.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/platform/silabs/efr32/ThreadStackManagerImpl.cpp b/src/platform/silabs/efr32/ThreadStackManagerImpl.cpp index ae44ed09fc7a18..7de0f7aeb9460b 100644 --- a/src/platform/silabs/efr32/ThreadStackManagerImpl.cpp +++ b/src/platform/silabs/efr32/ThreadStackManagerImpl.cpp @@ -41,14 +41,11 @@ extern "C" { #include "platform-efr32.h" -} - -// Forward declaration -extern "C" otInstance * otGetInstance(void); - +otInstance * otGetInstance(void); #if CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI -extern "C" void otAppCliInit(otInstance * aInstance); -#endif +void otAppCliInit(otInstance * aInstance); +#endif // CHIP_DEVICE_CONFIG_THREAD_ENABLE_CLI +} namespace chip { namespace DeviceLayer {