Annotation of pkgsrc/math/py-numexpr/patches/patch-numexpr_numexpr__config.hpp, revision 1.1
1.1 ! wiz 1: $NetBSD$
! 2:
! 3: Fix build on NetBSD.
! 4: https://github.com/pydata/numexpr/issues/528
! 5:
! 6: --- numexpr/numexpr_config.hpp.orig 2025-09-14 13:57:31.046041558 +0000
! 7: +++ numexpr/numexpr_config.hpp
! 8: @@ -40,6 +40,7 @@
! 9: #include "mkl_vml.h"
! 10: #include "mkl_service.h"
! 11: #endif
! 12: +#include <cmath>
! 13:
! 14: #ifdef _WIN32
! 15: #ifndef __MINGW32__
! 16: @@ -51,12 +52,12 @@
! 17: msvc_function_stubs contains windows alternatives
! 18: /* Due to casting problems (normally return ints not bools, easiest to define
! 19: non-overloaded wrappers for these functions) */
! 20: -inline bool isfinitef_(float x) { return !!::isfinite(x); }
! 21: -inline bool isnanf_(float x) { return !!::isnan(x); }
! 22: -inline bool isfinited(double x) { return !!::isfinite(x); }
! 23: -inline bool isnand(double x) { return !!::isnan(x); }
! 24: -inline bool isinff_(float x) { return !!::isinf(x); }
! 25: -inline bool isinfd(double x) { return !!::isinf(x); }
! 26: +inline bool isfinitef_(float x) { return !!std::isfinite(x); }
! 27: +inline bool isnanf_(float x) { return !!std::isnan(x); }
! 28: +inline bool isfinited(double x) { return !!std::isfinite(x); }
! 29: +inline bool isnand(double x) { return !!std::isnan(x); }
! 30: +inline bool isinff_(float x) { return !!std::isinf(x); }
! 31: +inline bool isinfd(double x) { return !!std::isinf(x); }
! 32: #endif
! 33:
! 34: #endif // NUMEXPR_CONFIG_HPP
CVSweb <webmaster@jp.NetBSD.org>