0001-build-sh4-FE.patch 953 B

123456789101112131415161718192021222324252627282930313233343536
  1. From aae8b63ddffe014e9353c3e8d2604628433eb7d7 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 4 Dec 2022 14:14:21 +0100
  4. Subject: [PATCH] build sh4 FE
  5. ensures FE_UPWARD and FE_DOWNWARD are defined for sh4 architecture.
  6. Closes: #1007769.
  7. [Retrieved from:
  8. https://salsa.debian.org/python-team/packages/scipy/-/blob/master/debian/patches/build_sh4_FE.patch]
  9. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  10. ---
  11. scipy/special/_round.h | 7 +++++++
  12. 1 file changed, 7 insertions(+)
  13. diff --git a/scipy/special/_round.h b/scipy/special/_round.h
  14. index 013a25620..c321a1939 100644
  15. --- a/scipy/special/_round.h
  16. +++ b/scipy/special/_round.h
  17. @@ -69,5 +69,12 @@ int fegetround()
  18. #endif
  19. +/* SH4 is not C99 compliant, see https://github.com/scipy/scipy/issues/15584 */
  20. +#ifndef FE_UPWARD
  21. +#define FE_UPWARD -1
  22. +#endif
  23. +#ifndef FE_DOWNWARD
  24. +#define FE_DOWNWARD -1
  25. +#endif
  26. #endif /* _round.h */
  27. --
  28. 2.38.1