mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 08:38:39 +00:00
Guard freertos_queue.h with ESPHOME_THREAD_MULTI_NO_ATOMICS
Prevents compilation failure on host/native builds where FreeRTOS headers are not available.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "esphome/core/defines.h"
|
||||
|
||||
#ifdef ESPHOME_THREAD_MULTI_NO_ATOMICS
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
|
||||
@@ -73,3 +77,5 @@ template<class T, uint8_t SIZE> class FreeRTOSQueue {
|
||||
};
|
||||
|
||||
} // namespace esphome
|
||||
|
||||
#endif // ESPHOME_THREAD_MULTI_NO_ATOMICS
|
||||
|
||||
Reference in New Issue
Block a user