Add macros header with more usable Arduino version defines (#2145)

This commit is contained in:
Oxan van Leeuwen authored and GitHub committed 2021-08-23 19:19:21 +12:00
1 parent b0fa317302
commit 8cc3cbb22e
6 files changed
+72 -15

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
#include "esphome/core/esphal.h"
#include "esphome/core/macros.h"
#include "esphome/core/helpers.h"
#include "esphome/core/defines.h"
#include "esphome/core/log.h"
@@ -298,7 +299,7 @@ void force_link_symbols() {
} // namespace esphome
#ifdef ARDUINO_ESP8266_RELEASE_2_3_0
#if defined(ARDUINO_ARCH_ESP8266) && ARDUINO_VERSION_CODE < VERSION_CODE(2, 4, 0)
// Fix 2.3.0 std missing memchr
extern "C" {
void *memchr(const void *s, int c, size_t n) {