build_sh4_FE
authorDebian Python Team <team+python@tracker.debian.org>
Sat, 18 Feb 2023 15:12:32 +0000 (15:12 +0000)
committerDrew Parsons <dparsons@debian.org>
Sat, 18 Feb 2023 15:12:32 +0000 (15:12 +0000)
Gbp-Pq: Name build_sh4_FE.patch

scipy/special/_round.h

index e9457245b89209b729744b18d9496704859bbf16..b33427738bb1fc1efb30a48618a7e00e6685f73f 100644 (file)
@@ -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 */