mirror of
https://github.com/nlohmann/json.git
synced 2026-06-08 13:49:45 +00:00
🐛 exclude breaking libraries
Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
@@ -137,10 +137,13 @@
|
|||||||
// ranges header shipping in GCC 11.1.0 (released 2021-04-27) has a syntax error
|
// ranges header shipping in GCC 11.1.0 (released 2021-04-27) has a syntax error
|
||||||
#if defined(__GLIBCXX__) && __GLIBCXX__ == 20210427
|
#if defined(__GLIBCXX__) && __GLIBCXX__ == 20210427
|
||||||
#define JSON_HAS_RANGES 0
|
#define JSON_HAS_RANGES 0
|
||||||
// libstdc++ < 12 has incomplete C++20 ranges (issue #4440)
|
// libstdc++ < 11 has incomplete C++20 ranges (issue #4440)
|
||||||
#elif defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE < 12
|
#elif defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE < 11
|
||||||
#define JSON_HAS_RANGES 0
|
#define JSON_HAS_RANGES 0
|
||||||
// libc++ < 16 has incomplete C++20 ranges (issue #4440)
|
// libc++ < 16 has incomplete C++20 ranges (issue #4440)
|
||||||
|
#elif defined(__clang__) && !defined(__apple_build_version__) \
|
||||||
|
&& __clang_major__ < 16 && defined(__GLIBCXX__)
|
||||||
|
#define JSON_HAS_RANGES 0
|
||||||
#elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 160000
|
#elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 160000
|
||||||
#define JSON_HAS_RANGES 0
|
#define JSON_HAS_RANGES 0
|
||||||
#elif defined(__cpp_lib_ranges)
|
#elif defined(__cpp_lib_ranges)
|
||||||
|
|||||||
@@ -2501,10 +2501,13 @@ JSON_HEDLEY_DIAGNOSTIC_POP
|
|||||||
// ranges header shipping in GCC 11.1.0 (released 2021-04-27) has a syntax error
|
// ranges header shipping in GCC 11.1.0 (released 2021-04-27) has a syntax error
|
||||||
#if defined(__GLIBCXX__) && __GLIBCXX__ == 20210427
|
#if defined(__GLIBCXX__) && __GLIBCXX__ == 20210427
|
||||||
#define JSON_HAS_RANGES 0
|
#define JSON_HAS_RANGES 0
|
||||||
// libstdc++ < 12 has incomplete C++20 ranges (issue #4440)
|
// libstdc++ < 11 has incomplete C++20 ranges (issue #4440)
|
||||||
#elif defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE < 12
|
#elif defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE < 11
|
||||||
#define JSON_HAS_RANGES 0
|
#define JSON_HAS_RANGES 0
|
||||||
// libc++ < 16 has incomplete C++20 ranges (issue #4440)
|
// libc++ < 16 has incomplete C++20 ranges (issue #4440)
|
||||||
|
#elif defined(__clang__) && !defined(__apple_build_version__) \
|
||||||
|
&& __clang_major__ < 16 && defined(__GLIBCXX__)
|
||||||
|
#define JSON_HAS_RANGES 0
|
||||||
#elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 160000
|
#elif defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 160000
|
||||||
#define JSON_HAS_RANGES 0
|
#define JSON_HAS_RANGES 0
|
||||||
#elif defined(__cpp_lib_ranges)
|
#elif defined(__cpp_lib_ranges)
|
||||||
|
|||||||
Reference in New Issue
Block a user