diff options
Diffstat (limited to 'serialize')
| -rw-r--r-- | serialize/json-helper.hpp | 1 | ||||
| -rw-r--r-- | serialize/world.cpp | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/serialize/json-helper.hpp b/serialize/json-helper.hpp index b1502295..c6dadf53 100644 --- a/serialize/json-helper.hpp +++ b/serialize/json-helper.hpp @@ -4,7 +4,6 @@ #include <exception> #include <filesystem> #include <nlohmann/json.hpp> -#include <Corrade/Utility/DebugStl.h> struct json_helper final { template<typename t> diff --git a/serialize/world.cpp b/serialize/world.cpp index 835a80f8..8b6f84d7 100644 --- a/serialize/world.cpp +++ b/serialize/world.cpp @@ -7,10 +7,12 @@ #include <memory> #include <nlohmann/json.hpp> -#ifdef __GNUG__ -#pragma GCC diagnostic push +#if defined _MSC_VER +#pragma warning(disable : 4996) +#elif defined __GNUG__ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif + namespace floormat { NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(chunk_coords, x, y) @@ -70,7 +72,3 @@ void adl_serializer<world>::from_json(const json& j, world& val) } } // namespace nlohmann - -#ifdef __GNUG__ -#pragma GCC diagnostic pop -#endif |
