Jan Engelhardt
422272881a
0002-Use-FMT_USE_FLOAT128-instead-of-__SIZEOF_FLOAT128__.patch 0001-Make-sure-the-correct-fmod-overload-is-called.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/fmt?expand=0&rev=47
35 lines
914 B
Diff
35 lines
914 B
Diff
From 05be7a0764f8fbfbdf9c9750ec54d49fe3d2419f Mon Sep 17 00:00:00 2001
|
|
From: Victor Zverovich <viz@fb.com>
|
|
Date: Sun, 10 Jul 2022 08:47:16 -0700
|
|
Subject: [PATCH 2/2] Use FMT_USE_FLOAT128 instead of __SIZEOF_FLOAT128__
|
|
|
|
---
|
|
test/format-test.cc | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/test/format-test.cc b/test/format-test.cc
|
|
index 8c1c305f..4ec7c838 100644
|
|
--- a/test/format-test.cc
|
|
+++ b/test/format-test.cc
|
|
@@ -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
|
|
}
|
|
@@ -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
|
|
}
|
|
--
|
|
2.36.1
|
|
|