Assume PROGMEM is available as soon as ARDUINO is defined (#1693)

This commit is contained in:
Benoit Blanchon
2021-12-31 11:00:50 +01:00
parent 055304bf01
commit 67fc2d9897
10 changed files with 17 additions and 24 deletions
+1
View File
@@ -7,5 +7,6 @@
#include "api/Print.h"
#include "api/Stream.h"
#include "api/String.h"
#include "progmem_emulation.hpp"
#define ARDUINO_H_INCLUDED 1
@@ -3,7 +3,6 @@
// MIT License
#include <stdint.h> // uint8_t
#include <string.h> // strcmp, strlen...
#define PROGMEM
-1
View File
@@ -6,7 +6,6 @@
#define ARDUINOJSON_ENABLE_ARDUINO_STRING 1
#include "custom_string.hpp"
#include "progmem_emulation.hpp"
#include "weird_strcmp.hpp"
#include <ArduinoJson/Strings/StringAdapters.hpp>
+6
View File
@@ -1,5 +1,11 @@
// ArduinoJson - https://arduinojson.org
// Copyright Benoit Blanchon 2014-2021
// MIT License
#include <ArduinoJson/Namespace.hpp>
#include <string.h> // strcmp, strncmp
// Issue #1198: strcmp() implementation that returns a value larger than 8-bit
namespace ARDUINOJSON_NAMESPACE {
@@ -2,8 +2,6 @@
// Copyright Benoit Blanchon 2014-2021
// MIT License
#include "progmem_emulation.hpp"
#define ARDUINOJSON_ENABLE_PROGMEM 1
#include <ArduinoJson.h>
@@ -2,8 +2,6 @@
// Copyright Benoit Blanchon 2014-2021
// MIT License
#include "progmem_emulation.hpp"
#define ARDUINOJSON_ENABLE_ARDUINO_STRING 1
#define ARDUINOJSON_ENABLE_PROGMEM 1
#define ARDUINOJSON_ENABLE_STRING_DEDUPLICATION 0
@@ -2,8 +2,6 @@
// Copyright Benoit Blanchon 2014-2021
// MIT License
#include "progmem_emulation.hpp"
#define ARDUINOJSON_ENABLE_ARDUINO_STRING 1
#define ARDUINOJSON_ENABLE_PROGMEM 1
#define ARDUINOJSON_ENABLE_STRING_DEDUPLICATION 1