Skip to content

Commit

Permalink
DEP: drop older cygwin compatibility shims (#22159)
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mattip committed Aug 21, 2022
1 parent 185c4f2 commit a36783e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions doc/release/upcoming_changes/22159.expired.rst
@@ -0,0 +1 @@
* Support for cygwin < 3.3 has been removed.
14 changes: 2 additions & 12 deletions numpy/core/src/common/npy_config.h
Expand Up @@ -138,18 +138,8 @@

#include <cygwin/version.h>
#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 < 3.3 not supported, please update
#endif
#endif

Expand Down

0 comments on commit a36783e

Please sign in to comment.