mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 10:17:39 +02:00
Fix 'std::string' has not been declared (issue #1967)
Ported from 259855a87b
This commit is contained in:
13
extras/tests/Misc/issue1967.cpp
Normal file
13
extras/tests/Misc/issue1967.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
// ArduinoJson - https://arduinojson.org
|
||||
// Copyright © 2014-2023, Benoit BLANCHON
|
||||
// MIT License
|
||||
|
||||
// we expect ArduinoJson.h to include <string>
|
||||
#define ARDUINOJSON_ENABLE_STD_STRING 1
|
||||
|
||||
// but we don't want it to included accidentally
|
||||
#undef ARDUINO
|
||||
#define ARDUINOJSON_ENABLE_STD_STREAM 0
|
||||
#define ARDUINOJSON_ENABLE_STRING_VIEW 0
|
||||
|
||||
#include <ArduinoJson.h>
|
Reference in New Issue
Block a user