From 0adccaefb6e456ca9cd14d6bfc3be70390f971f6 Mon Sep 17 00:00:00 2001 From: Elias Kosunen Date: Tue, 1 May 2018 22:38:27 +0300 Subject: [PATCH] Fix a -Wundef of _LIBCPP_VERSION --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index f893f865..2ecc043e 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -157,7 +157,7 @@ // libc++ supports string_view in pre-c++17. #if (FMT_HAS_INCLUDE() && \ - (__cplusplus > 201402L || _LIBCPP_VERSION)) || \ + (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \ (defined(_MSVC_LANG) && _MSVC_LANG > 201402L && _MSC_VER >= 1910) # include # define FMT_USE_STD_STRING_VIEW