Skip to content

Commit

Permalink
Fix build for the clang-10 / libstdc++-9 couple (#2491)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier authored Sep 7, 2021
1 parent ab6e227 commit c771ba3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
# define FMT_CONSTEXPR_DECL
#endif

#if __cplusplus >= 202002L || \
#if ((__cplusplus >= 202002L) && \
(!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE > 9)) || \
(__cplusplus >= 201709L && FMT_GCC_VERSION >= 1002)
# define FMT_CONSTEXPR20 constexpr
#else
Expand Down

0 comments on commit c771ba3

Please sign in to comment.