From 8f8129e2e07ba83fe3523291de944fe615885cb3 Mon Sep 17 00:00:00 2001 From: mattip Date: Sun, 21 Aug 2022 09:02:59 +0300 Subject: [PATCH] DEP: drop older cygwin compatibility shims --- doc/release/upcoming_changes/22159.expired.rst | 1 + numpy/core/src/common/npy_config.h | 14 ++------------ 2 files changed, 3 insertions(+), 12 deletions(-) create mode 100644 doc/release/upcoming_changes/22159.expired.rst diff --git a/doc/release/upcoming_changes/22159.expired.rst b/doc/release/upcoming_changes/22159.expired.rst new file mode 100644 index 000000000000..43e55ca4585d --- /dev/null +++ b/doc/release/upcoming_changes/22159.expired.rst @@ -0,0 +1 @@ +* Support for cygwin < 3003 has been removed. diff --git a/numpy/core/src/common/npy_config.h b/numpy/core/src/common/npy_config.h index 7457cc1b31d6..5cfc20f12d69 100644 --- a/numpy/core/src/common/npy_config.h +++ b/numpy/core/src/common/npy_config.h @@ -138,18 +138,8 @@ #include #if CYGWIN_VERSION_DLL_MAJOR < 3003 -/* https://cygwin.com/pipermail/cygwin-announce/2021-October/010268.html */ -/* Builtin abs reports overflow */ -#undef HAVE_CABSL -#undef HAVE_HYPOTL -#endif - -#if CYGWIN_VERSION_DLL_MAJOR < 3002 -/* https://cygwin.com/pipermail/cygwin-announce/2021-March/009987.html */ -/* Segfault */ -#undef HAVE_MODFL -/* sqrt(-inf) returns -inf instead of -nan */ -#undef HAVE_SQRTL +// rather than blocklist cabsl, hypotl, modfl, sqrtl, error out +#error cygwin < 3003 not supported, please update #endif #endif