Skip to content

Commit

Permalink
fix FMT_CONSTEXPR_CHAR_TRAITS check for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
alexezeder authored and vitaut committed Apr 26, 2021
1 parent d23e315 commit 77258f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
// MSVC, libc++: always if __cplusplus >= 201703L
// NOTE: FMT_GCC_VERSION - is not libstdc++ version.
// _GLIBCXX_RELEASE - is present in GCC 7 libstdc++ and newer.
#if __cplusplus >= 201703L
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
# ifndef __GLIBCXX__
# define FMT_CONSTEXPR_CHAR_TRAITS constexpr
# elif defined(_GLIBCXX_RELEASE) && _GLIBCXX_RELEASE >= 7
Expand Down

0 comments on commit 77258f6

Please sign in to comment.