From: Debian Python Team Date: Sun, 28 Jan 2024 13:08:13 +0000 (+0100) Subject: build_sh4_FE X-Git-Tag: archive/raspbian/1.11.4-6+rpi1^2^2^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=70afda2d46b74a75cf594f6b2404c68612948b5d;p=scipy.git build_sh4_FE Gbp-Pq: Name build_sh4_FE.patch --- 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 */