| @@ -1,18 +1,23 @@ | | | @@ -1,18 +1,23 @@ |
1 | $NetBSD: patch-scipy_special___round.h,v 1.2 2018/06/14 14:29:16 jperkin Exp $ | | 1 | $NetBSD: patch-scipy_special___round.h,v 1.3 2018/09/03 09:04:24 wiz Exp $ |
2 | | | 2 | |
| | | 3 | Chunk 1: SunOS fix |
| | | 4 | https://github.com/scipy/scipy/issues/9214 |
| | | 5 | |
| | | 6 | Chunk 2: |
3 | This conditional is just wrong, when built with c++, __STDC_VERSION__ | | 7 | This conditional is just wrong, when built with c++, __STDC_VERSION__ |
4 | is not defined. Make a cheezy fix which insists on <fenv.h> when | | 8 | is not defined. Make a cheezy fix which insists on <fenv.h> when |
5 | built with C++. | | 9 | built with C++. |
| | | 10 | https://github.com/scipy/scipy/issues/9213 |
6 | | | 11 | |
7 | --- scipy/special/_round.h.orig 2018-05-05 17:10:11.000000000 +0000 | | 12 | --- scipy/special/_round.h.orig 2018-05-05 17:10:11.000000000 +0000 |
8 | +++ scipy/special/_round.h | | 13 | +++ scipy/special/_round.h |
9 | @@ -9,6 +9,10 @@ | | 14 | @@ -9,6 +9,10 @@ |
10 | #include "_c99compat.h" | | 15 | #include "_c99compat.h" |
11 | #include "cephes/dd_idefs.h" | | 16 | #include "cephes/dd_idefs.h" |
12 | | | 17 | |
13 | +#if defined(__cplusplus) | | 18 | +#if defined(__cplusplus) |
14 | +using std::isinf; | | 19 | +using std::isinf; |
15 | +using std::isnan; | | 20 | +using std::isnan; |
16 | +#endif | | 21 | +#endif |
17 | | | 22 | |
18 | double add_round_up(double a, double b) | | 23 | double add_round_up(double a, double b) |