summaryrefslogtreecommitdiff
path: root/numpy/numarray/_capi.c
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-05-15 11:19:28 +0000
committercookedm <cookedm@localhost>2007-05-15 11:19:28 +0000
commita10da324f8a5d4d7e68fdfcb6a63c420f3c4b99d (patch)
tree13c0aedc1233351db934e21ba77aceabb4ce091c /numpy/numarray/_capi.c
parentf999341eedfcf47da72f352734a294cfa48607c4 (diff)
downloadnumpy-a10da324f8a5d4d7e68fdfcb6a63c420f3c4b99d.tar.gz
#513: fix up include of fenv.c in numarray for cygwin
Diffstat (limited to 'numpy/numarray/_capi.c')
-rw-r--r--numpy/numarray/_capi.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/numpy/numarray/_capi.c b/numpy/numarray/_capi.c
index de4c4e508..0ba1be221 100644
--- a/numpy/numarray/_capi.c
+++ b/numpy/numarray/_capi.c
@@ -4,6 +4,13 @@
#include "numpy/libnumarray.h"
#include <float.h>
+#if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__)
+#include <fenv.h>
+#elif defined(__CYGWIN__)
+#include "numpy/fenv/fenv.h"
+#include "numpy/fenv/fenv.c"
+#endif
+
static PyObject *pCfuncClass;
static PyTypeObject CfuncType;
static PyObject *pHandleErrorFunc;
@@ -225,11 +232,6 @@ static int int_dividebyzero_error(long value, long unused) {
/* Likewise for Integer overflows */
#if defined(__GLIBC__) || 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;
@@ -2938,11 +2940,6 @@ NA_checkFPErrors(void)
}
#elif defined(__GLIBC__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(__MINGW32__)
-#if defined(__GLIBC__) || defined(darwin) || defined(__MINGW32__)
-#include <fenv.h>
-#elif defined(__CYGWIN__)
-#include "numpy/fenv/fenv.h"
-#endif
static int
NA_checkFPErrors(void)