From: Debian Python Team Date: Wed, 25 Jan 2023 14:32:10 +0000 (+0000) Subject: build_sh4_FE X-Git-Tag: archive/raspbian/1.8.1-22+rpi1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c8a69ced5b7d45d5ad0becf9060e1449215ab389;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 013a2562..c321a193 100644 --- a/scipy/special/_round.h +++ b/scipy/special/_round.h @@ -69,5 +69,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 */