From d6b568a6cc41b4937c7f1a9b53d60b00e6370efb Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 29 May 2022 16:30:39 -0700 Subject: [PATCH] Cleanup string_view checks --- include/fmt/core.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 48a32383..31d63d6b 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -238,9 +238,8 @@ #endif // libc++ supports string_view in pre-c++17. -#if (FMT_HAS_INCLUDE() && \ - (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \ - (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910) +#if FMT_HAS_INCLUDE() && \ + (FMT_CPLUSPLUS >= 201703L || defined(_LIBCPP_VERSION)) # include # define FMT_USE_STRING_VIEW #elif FMT_HAS_INCLUDE("experimental/string_view") && __cplusplus >= 201402L