diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-03-26 21:41:45 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-03-26 21:41:45 +0000 |
commit | bb10e4031198e6578b5b6a1cfe314fd3b9972037 (patch) | |
tree | a1bed811fe8b290f3b2b6e628e749a87194c2bac /numpy/numarray/_capi.c | |
parent | 12b18aee2e16dd9d5d7fe60e37d538633e98caf8 (diff) | |
download | numpy-bb10e4031198e6578b5b6a1cfe314fd3b9972037.tar.gz |
Added patch in ticket #458 for compilation on Cygwin.
Diffstat (limited to 'numpy/numarray/_capi.c')
-rw-r--r-- | numpy/numarray/_capi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c index 4135e534f..a2ca326a7 100644 --- a/numpy/numarray/_capi.c +++ b/numpy/numarray/_capi.c @@ -224,8 +224,12 @@ static int int_dividebyzero_error(long value, long unused) { } /* Likewise for Integer overflows */ -#if defined(linux) +#if defined(linux) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__) +#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) #include <fenv.h> +#elif defined(__CYGWIN__) +#include "numpy/fenv/fenv.c" +#endif static int int_overflow_error(Float64 value) { /* For x86_64 */ feraiseexcept(FE_OVERFLOW); return (int) value; |