From 31c7597c8618fd4d07a62f8fcf315ae01b5c0b88 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Tue, 22 Sep 2009 02:42:47 +0000 Subject: BUG: fix atan2 and hypot when built with MS tools. MS mathlib atan2 and hypot are broken, so we disable them and use our own. --- numpy/core/npy_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/numpy/core/npy_config.h b/numpy/core/npy_config.h index 5b64f4aee..50a67c6ba 100644 --- a/numpy/core/npy_config.h +++ b/numpy/core/npy_config.h @@ -3,4 +3,10 @@ #include "config.h" +/* Disable broken MS math functions */ +#ifdef _MSC_VER +#undef HAVE_ATAN2 +#undef HAVE_HYPOT +#endif + #endif -- cgit v1.2.1