summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-09-22 02:42:47 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-09-22 02:42:47 +0000
commit31c7597c8618fd4d07a62f8fcf315ae01b5c0b88 (patch)
tree1a7b7f41b931cbd99e5282be45c4b09dfd612482
parentd48a4fa46f2c87ff96925eae142d49807a2cc1bd (diff)
downloadnumpy-31c7597c8618fd4d07a62f8fcf315ae01b5c0b88.tar.gz
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.
-rw-r--r--numpy/core/npy_config.h6
1 files changed, 6 insertions, 0 deletions
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