Merge pull request #8375 from kareem-wolfssl/zd19270

Fix warning about ESP_IDF_VERSION_MAJOR not being defined when defining FREERTOS.
This commit is contained in:
David Garske
2025-01-24 12:16:34 -08:00
committed by GitHub

View File

@ -284,7 +284,7 @@
#else /* MULTI_THREADED */
/* FREERTOS comes first to enable use of FreeRTOS Windows simulator only */
#if defined(FREERTOS)
#if ESP_IDF_VERSION_MAJOR >= 4
#if defined(ESP_IDF_VERSION_MAJOR) && (ESP_IDF_VERSION_MAJOR >= 4)
typedef SemaphoreHandle_t wolfSSL_Mutex;
#else
typedef xSemaphoreHandle wolfSSL_Mutex;