This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new 18f430c7838 IGNITE-28378 C++ Client: Fix compilation (#7881)
18f430c7838 is described below

commit 18f430c783821c96969d931ac603225273222c30
Author: Igor Sapego <[email protected]>
AuthorDate: Thu Mar 26 17:03:39 2026 +0100

    IGNITE-28378 C++ Client: Fix compilation (#7881)
---
 .../platforms/cpp/ignite/common/detail/hash_utils_test.cpp   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/platforms/cpp/ignite/common/detail/hash_utils_test.cpp 
b/modules/platforms/cpp/ignite/common/detail/hash_utils_test.cpp
index 9742e40960b..2e539da84df 100644
--- a/modules/platforms/cpp/ignite/common/detail/hash_utils_test.cpp
+++ b/modules/platforms/cpp/ignite/common/detail/hash_utils_test.cpp
@@ -18,13 +18,13 @@
 #include <ignite/common/detail/string_extensions.h>
 
 #include <algorithm>
-#define _USE_MATH_DEFINES
-#include <cmath>
 #include <iterator>
 #include <limits>
 
 #include <gtest/gtest.h>
 
+#define TEST_PI 3.14159265358979323846
+
 using namespace ignite;
 using namespace ignite::detail;
 
@@ -232,7 +232,7 @@ INSTANTIATE_TEST_SUITE_P(
         test_case<float>{-1.0,-2101035902},
         test_case<float>{std::numeric_limits<float>::max(), 1780074225},
         test_case<float>{42.0F,1227011061},
-        test_case<float>{float{M_PI},-2142471555}
+        test_case<float>{float{TEST_PI},-2142471555}
     )
 );
 
@@ -253,7 +253,7 @@ INSTANTIATE_TEST_SUITE_P(
         test_case<double>{-1.0,210701226},
         test_case<double>{std::numeric_limits<double>::max(), -1921889547},
         test_case<double>{42.0F,2109601987},
-        test_case<double>{double{M_PI},-521675661}
+        test_case<double>{double{TEST_PI},-521675661}
     )
 );
 
@@ -273,8 +273,8 @@ INSTANTIATE_TEST_SUITE_P(
         test_case<big_decimal>{big_decimal{1},904832652},
         test_case<big_decimal>{big_decimal{-1},-1497790521},
         test_case<big_decimal>{big_decimal{42},1347451647},
-        test_case<big_decimal>{big_decimal::from_double(M_PI),572053262},
-        test_case<big_decimal>{big_decimal::from_double(M_PI*-1),-2078930604}
+        test_case<big_decimal>{big_decimal::from_double(TEST_PI),572053262},
+        
test_case<big_decimal>{big_decimal::from_double(TEST_PI*-1),-2078930604}
     )
 );
 

Reply via email to