From: Sergey B Kirpichev Date: Thu, 24 Apr 2025 15:45:29 +0000 (+0300) Subject: gh-125206: don't use CMPLX in libffi complex configure test (#132865) X-Git-Tag: v3.14.0b1~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bab59a904c146854e38eaa2d570c85b6f8c13642;p=thirdparty%2FPython%2Fcpython.git gh-125206: don't use CMPLX in libffi complex configure test (#132865) See https://sourceware.org/bugzilla/show_bug.cgi?id=26287 This amends aac89b5. --- diff --git a/configure b/configure index 2685fdcd7b43..8b91d1d871a9 100755 --- a/configure +++ b/configure @@ -15521,7 +15521,7 @@ else case e in #( #include int z_is_expected(double complex z) { - const double complex expected = CMPLX(1.25, -0.5); + const double complex expected = 1.25 - 0.5 * I; return z == expected; } int main(void) diff --git a/configure.ac b/configure.ac index 55b499faa8d0..1aedd54bd0c7 100644 --- a/configure.ac +++ b/configure.ac @@ -4066,7 +4066,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include int z_is_expected(double complex z) { - const double complex expected = CMPLX(1.25, -0.5); + const double complex expected = 1.25 - 0.5 * I; return z == expected; } int main(void)