8000 Merge pull request #8319 from charris/backport-8318 · numpy/numpy@75a586f · GitHub
[go: up one dir, main page]

Skip to content

Commit 75a586f

Browse files
authored
Merge pull request #8319 from charris/backport-8318
BLD: blacklist powl (longdouble power function) on OS X.
2 parents da6bdf4 + 8ef0992 commit 75a586f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

numpy/core/src/private/npy_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "config.h"
55
#include "numpy/numpyconfig.h"
66
#include "numpy/npy_cpu.h"
7+
#include "numpy/npy_os.h"
78

89
/*
910
* largest alignment the copy loops might require
@@ -69,6 +70,10 @@
6970
#endif
7071
#endif /* defined(_MSC_VER) && defined(__INTEL_COMPILER) */
7172

73+
/* powl gives zero division warning on OS X, see gh-8307 */
74+
#if defined(HAVE_POWL) && defined(NPY_OS_DARWIN)
75+
#undef HAVE_POWL
76+
#endif
7277

7378
/* Disable broken gnu trig functions */
7479
#if defined(HAVE_FEATURES_H)

0 commit comments

Comments
 (0)
0