mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 13:02:25 +02:00
Include Arduino.h
before stdlib.h
to avoid conflict (closes #1693)
This commit is contained in:
@ -6,6 +6,13 @@
|
|||||||
|
|
||||||
#include "ArduinoJson/Configuration.hpp"
|
#include "ArduinoJson/Configuration.hpp"
|
||||||
|
|
||||||
|
// Include Arduino.h before stdlib.h to avoid conflict with atexit()
|
||||||
|
// https://github.com/bblanchon/ArduinoJson/pull/1693#issuecomment-1001060240
|
||||||
|
#if ARDUINOJSON_ENABLE_ARDUINO_STRING || ARDUINOJSON_ENABLE_ARDUINO_STREAM || \
|
||||||
|
ARDUINOJSON_ENABLE_ARDUINO_PRINT || ARDUINOJSON_ENABLE_PROGMEM
|
||||||
|
# include <Arduino.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !ARDUINOJSON_DEBUG
|
#if !ARDUINOJSON_DEBUG
|
||||||
# ifdef __clang__
|
# ifdef __clang__
|
||||||
# pragma clang system_header
|
# pragma clang system_header
|
||||||
|
Reference in New Issue
Block a user