8000 BLD: fix compilation on non glibc-Linuxes by xdmiodz · Pull Request #7092 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BLD: fix compilation on non glibc-Linuxes #7092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions numpy/core/src/private/npy_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,13 @@
#endif /* defined(_MSC_VER) && defined(__INTEL_COMPILER) */


/* Disable broken gnu trig functions on linux */
#if defined(__linux__) && defined(__GNUC__)

/* Disable broken gnu trig functions */
#if defined(HAVE_FEATURES_H)
#include <features.h>
#define TRIG_OK __GLIBC_PREREQ(2, 16)
#else
#define TRIG_OK 0
#endif

#if !TRIG_OK
#if defined(__GLIBC__)
#if !__GLIBC_PREREQ(2, 16)

#undef HAVE_CASIN
#undef HAVE_CASINF
#undef HAVE_CASINL
Expand All @@ -99,9 +95,10 @@
#undef HAVE_CACOSH
#undef HAVE_CACOSHF
#undef HAVE_CACOSHL
#endif
#undef TRIG_OK

#endif /* defined(__linux__) && defined(__GNUC__) */
#endif /* __GLIBC_PREREQ(2, 16) */
#endif /* defined(__GLIBC_PREREQ) */

#endif /* defined(HAVE_FEATURES_H) */

#endif
0