Skip to content

Commit

Permalink
Use FMT_USE_FLOAT128 instead of __SIZEOF_FLOAT128__
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jul 10, 2022
1 parent 2a1b3ac commit 05be7a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/format-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ template <typename Float> void check_isfinite() {

TEST(float_test, isfinite) {
check_isfinite<double>();
#ifdef __SIZEOF_FLOAT128__
#if FMT_USE_FLOAT128
check_isfinite<fmt::detail::float128>();
#endif
}
Expand All @@ -122,7 +122,7 @@ template <typename Float> void check_isnan() {

TEST(float_test, isnan) {
check_isnan<double>();
#ifdef __SIZEOF_FLOAT128__
#if FMT_USE_FLOAT128
check_isnan<fmt::detail::float128>();
#endif
}
Expand Down

0 comments on commit 05be7a0

Please sign in to comment.