mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01: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 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 | ||||
| #  ifdef __clang__ | ||||
| #    pragma clang system_header | ||||
|   | ||||
		Reference in New Issue
	
	Block a user