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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user