build_sh4_FE
authorDebian Python Team <team+python@tracker.debian.org>
Tue, 3 Jan 2023 20:59:59 +0000 (20:59 +0000)
committerJochen Sprickerhof <jspricke@debian.org>
Tue, 3 Jan 2023 20:59:59 +0000 (20:59 +0000)
===================================================================

Gbp-Pq: Name build_sh4_FE.patch

scipy/special/_round.h

index 013a25620e65b1035c2b6d4f399fe7f5d770e862..c321a19398514c1a26f9aa38397fa3ee8c46e444 100644 (file)
@@ -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 */