File tree 3 files changed +26
-1
lines changed 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 12
12
#mesondefine HAVE___DECLSPEC_THREAD_
13
13
14
14
/* Optional headers */
15
+ #mesondefine HAVE_FEATURES_H
15
16
#mesondefine HAVE_XLOCALE_H
16
17
#mesondefine HAVE_DLFCN_H
17
18
#mesondefine HAVE_EXECINFO_H
Original file line number Diff line number Diff line change 160
160
#undef HAVE_CACOSHL
161
161
162
162
#endif /* __GLIBC_PREREQ(2, 18) */
163
- #endif /* defined(__GLIBC_PREREQ) */
163
+ #else /* defined(__GLIBC) */
164
+ /* musl linux?, see issue #25092 */
164
165
166
+ #undef HAVE_CASIN
167
+ #undef HAVE_CASINF
168
+ #undef HAVE_CASINL
169
+ #undef HAVE_CASINH
170
+ #undef HAVE_CASINHF
171
+ #undef HAVE_CASINHL
172
+ #undef HAVE_CATAN
173
+ #undef HAVE_CATANF
174
+ #undef HAVE_CATANL
175
+ #undef HAVE_CATANH
176
+ #undef HAVE_CATANHF
177
+ #undef HAVE_CATANHL
178
+ #undef HAVE_CACOS
179
+ #undef HAVE_CACOSF
180
+ #undef HAVE_CACOSL
181
+ #undef HAVE_CACOSH
182
+ #undef HAVE_CACOSHF
183
+ #undef HAVE_CACOSHL
184
+
185
+ #endif /* defined(__GLIBC) */
165
186
#endif /* defined(HAVE_FEATURES_H) */
166
187
167
188
#endif /* NUMPY_CORE_SRC_COMMON_NPY_CONFIG_H_ */
Original file line number Diff line number Diff line change @@ -1712,6 +1712,9 @@ def test_arctanh(self):
1712
1712
assert_raises (FloatingPointError , np .arctanh ,
1713
1713
np .array (value , dtype = dt ))
1714
1714
1715
+ # Make sure glibc < 2.18 atanh is not used, issue 25087
1716
+ assert np .signbit (np .arctanh (- 1j ).real )
1717
+
1715
1718
# See: https://github.com/numpy/numpy/issues/20448
1716
1719
@pytest .mark .xfail (
1717
1720
_glibc_older_than ("2.17" ),
You can’t perform that action at this time.
0 commit comments