From 473d58330fb520d8c96b877842bc772a4b62f4d2 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Sat, 16 Nov 2019 15:53:05 -0700 Subject: [PATCH] Add stdint, move headers up in core_features.h Fixes #6791 which I think only happened when the file was included from a .C file (due to the headers being included only ifdef __cplusplus). --- cores/esp8266/core_esp8266_features.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cores/esp8266/core_esp8266_features.h b/cores/esp8266/core_esp8266_features.h index dc1a47705c..d3b70f3dcc 100644 --- a/cores/esp8266/core_esp8266_features.h +++ b/cores/esp8266/core_esp8266_features.h @@ -32,10 +32,11 @@ #define WIFI_HAS_EVENT_CALLBACK -#ifdef __cplusplus - #include // malloc() #include // size_t +#include + +#ifdef __cplusplus namespace arduino {