https://github.com/python/cpython/commit/bab59a904c146854e38eaa2d570c85b6f8c13642 commit: bab59a904c146854e38eaa2d570c85b6f8c13642 branch: main author: Sergey B Kirpichev <skirpic...@gmail.com> committer: vstinner <vstin...@python.org> date: 2025-04-24T17:45:29+02:00 summary:
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. files: M configure M configure.ac diff --git a/configure b/configure index 2685fdcd7b435f..8b91d1d871a971 100755 --- a/configure +++ b/configure @@ -15521,7 +15521,7 @@ else case e in #( #include <ffi.h> 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 55b499faa8d06e..1aedd54bd0c70d 100644 --- a/configure.ac +++ b/configure.ac @@ -4066,7 +4066,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <ffi.h> 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) _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com