From 782fab93b49b7f27aa5335aebc356fcaad826197 Mon Sep 17 00:00:00 2001 From: Keith Stellyes Date: Sat, 24 Oct 2020 06:23:17 -0700 Subject: [PATCH] Add compile-time check for nlohmann json (#13277) --- src/openrct2/core/Json.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/core/Json.hpp b/src/openrct2/core/Json.hpp index 69899b12a5..92946c136c 100644 --- a/src/openrct2/core/Json.hpp +++ b/src/openrct2/core/Json.hpp @@ -15,6 +15,10 @@ #include #include +#if NLOHMANN_JSON_VERSION_MAJOR < 3 || (NLOHMANN_JSON_VERSION_MAJOR == 3 && NLOHMANN_JSON_VERSION_MINOR < 6) +# error "Unsupported version of nlohmann json library, must be >= 3.6" +#endif // NLOHMANN_JSON_VERSION_MAJOR < 3 || (NLOHMANN_JSON_VERSION_MAJOR == 3 && NLOHMANN_JSON_VERSION_MINOR < 6) + using json_t = nlohmann::json; namespace Json