Skip to content

Commit b71872c

Browse files
Add stdint, move headers up in core_features.h (esp8266#6793)
Fixes esp8266#6791 which I think only happened when the file was included from a .C file (due to the headers being included only ifdef __cplusplus).
1 parent dabf4c5 commit b71872c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cores/esp8266/core_esp8266_features.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232

3333
#define WIFI_HAS_EVENT_CALLBACK
3434

35-
#ifdef __cplusplus
36-
3735
#include <stdlib.h> // malloc()
3836
#include <stddef.h> // size_t
37+
#include <stdint.h>
38+
39+
#ifdef __cplusplus
3940

4041
namespace arduino
4142
{

0 commit comments

Comments
 (0)