diff options
Diffstat (limited to '')
-rw-r--r-- | src/web_service/json.h | 18 | ||||
-rw-r--r-- | src/web_service/telemetry_json.h | 2 | ||||
-rw-r--r-- | src/web_service/verify_login.cpp | 2 |
3 files changed, 2 insertions, 20 deletions
diff --git a/src/web_service/json.h b/src/web_service/json.h deleted file mode 100644 index 88b31501e..000000000 --- a/src/web_service/json.h +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2018 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -// This hack is needed to support json.hpp on platforms where the C++17 stdlib -// lacks std::string_view. See https://github.com/nlohmann/json/issues/735. -// clang-format off -#if !__has_include(<string_view>) && __has_include(<experimental/string_view>) -# include <experimental/string_view> -# define string_view experimental::string_view -# include <json.hpp> -# undef string_view -#else -# include <json.hpp> -#endif -// clang-format on diff --git a/src/web_service/telemetry_json.h b/src/web_service/telemetry_json.h index 29d565964..0fe6f9a3e 100644 --- a/src/web_service/telemetry_json.h +++ b/src/web_service/telemetry_json.h @@ -6,9 +6,9 @@ #include <array> #include <string> +#include <json.hpp> #include "common/telemetry.h" #include "common/web_result.h" -#include "web_service/json.h" namespace WebService { diff --git a/src/web_service/verify_login.cpp b/src/web_service/verify_login.cpp index 02e1b74f3..124aa3863 100644 --- a/src/web_service/verify_login.cpp +++ b/src/web_service/verify_login.cpp @@ -2,7 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. -#include "web_service/json.h" +#include <json.hpp> #include "web_service/verify_login.h" #include "web_service/web_backend.h" |