diff --git a/esphome/core/freertos_queue.h b/esphome/core/freertos_queue.h index 073b47eff6..ccf99523d8 100644 --- a/esphome/core/freertos_queue.h +++ b/esphome/core/freertos_queue.h @@ -1,5 +1,9 @@ #pragma once +#include "esphome/core/defines.h" + +#ifdef ESPHOME_THREAD_MULTI_NO_ATOMICS + #include #include @@ -73,3 +77,5 @@ template class FreeRTOSQueue { }; } // namespace esphome + +#endif // ESPHOME_THREAD_MULTI_NO_ATOMICS