1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 08:12:53 +01:00

Add compile-time check for nlohmann json (#13277)

This commit is contained in:
Keith Stellyes
2020-10-24 06:23:17 -07:00
committed by GitHub
parent fe5ee422a2
commit 782fab93b4

View File

@@ -15,6 +15,10 @@
#include <string>
#include <string_view>
#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