Procházet zdrojové kódy

Fixed error "No such file or directory WString.h" (fixes #1381)

Benoit Blanchon před 5 roky
rodič
revize
6a878ee444

+ 1 - 0
CHANGELOG.md

@@ -9,6 +9,7 @@ HEAD
 * Added `DeserializationError::EmptyInput` which tells if the input was empty
 * Added `DeserializationError::f_str()` which returns a `const __FlashStringHelper*` (issue #846)
 * Fixed `JsonVariant::set((char*)0)` which returned false instead of true (issue #1368)
+* Fixed error `No such file or directory #include <WString.h>` (issue #1381)
 
 v6.16.1 (2020-08-04)
 -------

+ 8 - 0
extras/tests/Helpers/Arduino.h

@@ -0,0 +1,8 @@
+// ArduinoJson - arduinojson.org
+// Copyright Benoit Blanchon 2014-2020
+// MIT License
+
+#pragma once
+
+#include "api/Stream.h"
+#include "api/String.h"

+ 0 - 0
extras/tests/Helpers/Stream.h → extras/tests/Helpers/api/Stream.h


+ 0 - 0
extras/tests/Helpers/WString.h → extras/tests/Helpers/api/String.h


+ 1 - 1
src/ArduinoJson/Deserialization/Readers/ArduinoStreamReader.hpp

@@ -4,7 +4,7 @@
 
 #pragma once
 
-#include <Stream.h>
+#include <Arduino.h>
 
 namespace ARDUINOJSON_NAMESPACE {
 

+ 1 - 1
src/ArduinoJson/Serialization/Writers/ArduinoStringWriter.hpp

@@ -4,7 +4,7 @@
 
 #pragma once
 
-#include <WString.h>
+#include <Arduino.h>
 
 namespace ARDUINOJSON_NAMESPACE {
 

+ 1 - 1
src/ArduinoJson/Strings/ArduinoStringAdapter.hpp

@@ -4,7 +4,7 @@
 
 #pragma once
 
-#include <WString.h>
+#include <Arduino.h>
 
 #include <ArduinoJson/Polyfills/safe_strcmp.hpp>
 #include <ArduinoJson/Strings/IsString.hpp>

+ 1 - 1
src/ArduinoJson/Strings/IsWriteableString.hpp

@@ -8,7 +8,7 @@
 #include <ArduinoJson/Polyfills/type_traits.hpp>
 
 #if ARDUINOJSON_ENABLE_ARDUINO_STRING
-#include <WString.h>
+#include <Arduino.h>
 #endif
 
 #if ARDUINOJSON_ENABLE_STD_STRING