From 52d96786f521c1bf559f8ea34fabf8eff8ccb605 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 15 Sep 2025 12:37:46 +0200 Subject: [PATCH] Fix build on NetBSD with gcc 12. Closes #528. --- numexpr/numexpr_config.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/numexpr/numexpr_config.hpp b/numexpr/numexpr_config.hpp index 6c708cd..98f2701 100644 --- a/numexpr/numexpr_config.hpp +++ b/numexpr/numexpr_config.hpp @@ -40,6 +40,7 @@ #include "mkl_vml.h" #include "mkl_service.h" #endif +#include #ifdef _WIN32 #ifndef __MINGW32__ @@ -51,12 +52,12 @@ msvc_function_stubs contains windows alternatives */ /* Due to casting problems (normally return ints not bools, easiest to define non-overloaded wrappers for these functions) */ -inline bool isfinitef_(float x) { return !!::isfinite(x); } -inline bool isnanf_(float x) { return !!::isnan(x); } -inline bool isfinited(double x) { return !!::isfinite(x); } -inline bool isnand(double x) { return !!::isnan(x); } -inline bool isinff_(float x) { return !!::isinf(x); } -inline bool isinfd(double x) { return !!::isinf(x); } +inline bool isfinitef_(float x) { return !!std::isfinite(x); } +inline bool isnanf_(float x) { return !!std::isnan(x); } +inline bool isfinited(double x) { return !!std::isfinite(x); } +inline bool isnand(double x) { return !!std::isnan(x); } +inline bool isinff_(float x) { return !!std::isinf(x); } +inline bool isinfd(double x) { return !!std::isinf(x); } #endif #endif // NUMEXPR_CONFIG_HPP