From 5cb7bde72b79441d26a40391eeb811d035f016a6 Mon Sep 17 00:00:00 2001 From: flagarde Date: Mon, 4 Apr 2022 22:50:52 +0800 Subject: [PATCH] Run amalgamate --- include/nlohmann/json.hpp | 2 +- single_include/nlohmann/json.hpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 7d4b67db4..496007c0d 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -310,7 +310,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}}; #endif - + #if defined(_MSVC_LANG) result["compiler"]["c++"] = std::to_string(_MSVC_LANG); #elif defined(__cplusplus) diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index ba272a126..33a91164c 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -17505,7 +17505,10 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec result["compiler"] = {{"family", "unknown"}, {"version", "unknown"}}; #endif -#ifdef __cplusplus + +#if defined(_MSVC_LANG) + result["compiler"]["c++"] = std::to_string(_MSVC_LANG); +#elif defined(__cplusplus) result["compiler"]["c++"] = std::to_string(__cplusplus); #else result["compiler"]["c++"] = "unknown";