mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-19 21:42:30 +02:00
Drop support for C++98/C++03 (closes #1820)
This commit is contained in:
@ -1,6 +1,11 @@
|
|||||||
ArduinoJson: change log
|
ArduinoJson: change log
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
HEAD
|
||||||
|
----
|
||||||
|
|
||||||
|
* Drop support for C++98/C++03. Minimum required is C++11.
|
||||||
|
|
||||||
v6.20.1 (2023-02-08)
|
v6.20.1 (2023-02-08)
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
# Copyright © 2014-2022, Benoit BLANCHON
|
# Copyright © 2014-2022, Benoit BLANCHON
|
||||||
# MIT License
|
# MIT License
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_options(-D_CRT_SECURE_NO_WARNINGS)
|
add_compile_options(-D_CRT_SECURE_NO_WARNINGS)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# CAUTION: this file is invoked by https://github.com/google/oss-fuzz
|
# CAUTION: this file is invoked by https://github.com/google/oss-fuzz
|
||||||
|
|
||||||
CXXFLAGS += -I../../src -DARDUINOJSON_DEBUG=1
|
CXXFLAGS += -I../../src -DARDUINOJSON_DEBUG=1 -std=c++11
|
||||||
|
|
||||||
all: \
|
all: \
|
||||||
$(OUT)/json_fuzzer \
|
$(OUT)/json_fuzzer \
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#if __cplusplus < 201103L && (!defined(_MSC_VER) || _MSC_VER < 1910)
|
||||||
|
# error ArduinoJson requires C++11 or newer. Configure your compiler for C++11 or downgrade ArduinoJson to 6.20.
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "ArduinoJson/Configuration.hpp"
|
#include "ArduinoJson/Configuration.hpp"
|
||||||
|
|
||||||
// Include Arduino.h before stdlib.h to avoid conflict with atexit()
|
// Include Arduino.h before stdlib.h to avoid conflict with atexit()
|
||||||
|
Reference in New Issue
Block a user