From d2542d5f00c1be3f2e8aa53be30e67554a667b85 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sat, 26 Nov 2016 20:28:41 +1300 Subject: [PATCH] BLD: blacklist powl (longdouble power function) on OS X. Closes gh-8307. --- numpy/core/src/private/npy_config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/numpy/core/src/private/npy_config.h b/numpy/core/src/private/npy_config.h index 5f8aa3b79963..b8e18e96152f 100644 --- a/numpy/core/src/private/npy_config.h +++ b/numpy/core/src/private/npy_config.h @@ -4,6 +4,7 @@ #include "config.h" #include "numpy/numpyconfig.h" #include "numpy/npy_cpu.h" +#include "numpy/npy_os.h" /* * largest alignment the copy loops might require @@ -69,6 +70,10 @@ #endif #endif /* defined(_MSC_VER) && defined(__INTEL_COMPILER) */ +/* powl gives zero division warning on OS X, see gh-8307 */ +#if defined(HAVE_POWL) && defined(NPY_OS_DARWIN) +#undef HAVE_POWL +#endif /* Disable broken gnu trig functions */ #if defined(HAVE_FEATURES_H)