[Numpy-svn] r3603 - trunk/numpy/numarray

numpy-svn at scipy.org numpy-svn at scipy.org
Mon Mar 26 17:41:48 EDT 2007


Author: oliphant
Date: 2007-03-26 16:41:45 -0500 (Mon, 26 Mar 2007)
New Revision: 3603

Modified:
   trunk/numpy/numarray/_capi.c
Log:
Added patch in ticket #458 for compilation on Cygwin.

Modified: trunk/numpy/numarray/_capi.c
===================================================================
--- trunk/numpy/numarray/_capi.c	2007-03-26 21:28:30 UTC (rev 3602)
+++ trunk/numpy/numarray/_capi.c	2007-03-26 21:41:45 UTC (rev 3603)
@@ -224,8 +224,12 @@
 }
 
 /* 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;




More information about the Numpy-svn mailing list