From 2ba0c0a0d29f9198c399b9b726f5be5e5ab97e1c Mon Sep 17 00:00:00 2001 From: Debian Python Team Date: Sat, 6 Jan 2024 14:54:22 +0000 Subject: [PATCH] build_sh4_FE Gbp-Pq: Name build_sh4_FE.patch --- scipy/special/_round.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scipy/special/_round.h b/scipy/special/_round.h index e9457245..b3342773 100644 --- a/scipy/special/_round.h +++ b/scipy/special/_round.h @@ -68,5 +68,12 @@ int fegetround() #endif +/* SH4 is not C99 compliant, see https://github.com/scipy/scipy/issues/15584 */ +#ifndef FE_UPWARD +#define FE_UPWARD -1 +#endif +#ifndef FE_DOWNWARD +#define FE_DOWNWARD -1 +#endif #endif /* _round.h */ -- 2.30.2