File tree 2 files changed +13
-20
lines changed
2 files changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -761,28 +761,22 @@ using is_integer =
761
761
# define FMT_USE_LONG_DOUBLE 1
762
762
#endif
763
763
764
- #ifndef FMT_USE_FLOAT128
765
- # ifdef __clang__
766
- // Clang emulates GCC, so it has to appear early.
767
- # if FMT_HAS_INCLUDE(<quadmath.h>)
768
- # define FMT_USE_FLOAT128 1
769
- # endif
770
- # elif defined(__GNUC__)
771
- // GNU C++:
772
- # if defined(_GLIBCXX_USE_FLOAT128) && !defined(__STRICT_ANSI__)
773
- # define FMT_USE_FLOAT128 1
774
- # endif
775
- # endif
776
- # ifndef FMT_USE_FLOAT128
777
- # define FMT_USE_FLOAT128 0
778
- # endif
764
+ #if defined(FMT_USE_FLOAT128)
765
+ // Use the provided definition.
766
+ #elif FMT_CLANG_VERSION && FMT_HAS_INCLUDE(<quadmath.h>)
767
+ # define FMT_USE_FLOAT128 1
768
+ #elif FMT_GCC_VERSION && defined(_GLIBCXX_USE_FLOAT128) && \
769
+ !defined(__STRICT_ANSI__)
770
+ # define FMT_USE_FLOAT128 1
771
+ #else
772
+ # define FMT_USE_FLOAT128 0
779
773
#endif
780
-
781
774
#if FMT_USE_FLOAT128
782
775
using float128 = __float128;
783
776
#else
784
777
using float128 = void ;
785
778
#endif
779
+
786
780
template <typename T> using is_float128 = std::is_same<T, float128>;
787
781
788
782
template <typename T>
Original file line number Diff line number Diff line change @@ -1793,15 +1793,14 @@ struct deadlockable {
1793
1793
1794
1794
FMT_BEGIN_NAMESPACE
1795
1795
template <> struct formatter <deadlockable> {
1796
- FMT_CONSTEXPR auto parse (fmt::format_parse_context& ctx)
1797
- -> decltype(ctx.begin()) {
1796
+ FMT_CONSTEXPR auto parse (format_parse_context& ctx) -> decltype(ctx.begin()) {
1798
1797
return ctx.begin ();
1799
1798
}
1800
1799
1801
- auto format (const deadlockable& d, fmt:: format_context& ctx) const
1800
+ auto format (const deadlockable& d, format_context& ctx) const
1802
1801
-> decltype(ctx.out()) {
1803
1802
std::lock_guard<std::mutex> lock (d.mutex );
1804
- return fmt:: format_to (ctx.out (), " {}" , d.value );
1803
+ return format_to (ctx.out (), " {}" , d.value );
1805
1804
}
1806
1805
};
1807
1806
FMT_END_NAMESPACE
You can’t perform that action at this time.
0 commit comments