diff options
author | David Cournapeau <cournape@gmail.com> | 2009-09-22 02:42:47 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-09-22 02:42:47 +0000 |
commit | 31c7597c8618fd4d07a62f8fcf315ae01b5c0b88 (patch) | |
tree | 1a7b7f41b931cbd99e5282be45c4b09dfd612482 /numpy/core/npy_config.h | |
parent | d48a4fa46f2c87ff96925eae142d49807a2cc1bd (diff) | |
download | numpy-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.
Diffstat (limited to 'numpy/core/npy_config.h')
-rw-r--r-- | numpy/core/npy_config.h | 6 |
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 |