File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1212#mesondefine HAVE___DECLSPEC_THREAD_
1313
1414/* Optional headers */
15+ #mesondefine HAVE_FEATURES_H
1516#mesondefine HAVE_XLOCALE_H
1617#mesondefine HAVE_DLFCN_H
1718#mesondefine HAVE_EXECINFO_H
Original file line number Diff line number Diff line change 160160#undef HAVE_CACOSHL
161161
162162#endif /* __GLIBC_PREREQ(2, 18) */
163- #endif /* defined(__GLIBC_PREREQ) */
163+ #else /* defined(__GLIBC) */
164+ /* musl linux?, see issue #25092 */
164165
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) */
165186#endif /* defined(HAVE_FEATURES_H) */
166187
167188#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):
17121712 assert_raises (FloatingPointError , np .arctanh ,
17131713 np .array (value , dtype = dt ))
17141714
1715+ # Make sure glibc < 2.18 atanh is not used, issue 25087
1716+ assert np .signbit (np .arctanh (- 1j ).real )
1717+
17151718 # See: https://github.com/numpy/numpy/issues/20448
17161719 @pytest .mark .xfail (
17171720 _glibc_older_than ("2.17" ),
You can’t perform that action at this time.
0 commit comments