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