Skip to content

Commit 52d9678

Browse files
committed
Fix build on NetBSD with gcc 12.
Closes #528.
1 parent 44d467b commit 52d9678

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

numexpr/numexpr_config.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "mkl_vml.h"
4141
#include "mkl_service.h"
4242
#endif
43+
#include <cmath>
4344

4445
#ifdef _WIN32
4546
#ifndef __MINGW32__
@@ -51,12 +52,12 @@
5152
msvc_function_stubs contains windows alternatives */
5253
/* Due to casting problems (normally return ints not bools, easiest to define
5354
non-overloaded wrappers for these functions) */
54-
inline bool isfinitef_(float x) { return !!::isfinite(x); }
55-
inline bool isnanf_(float x) { return !!::isnan(x); }
56-
inline bool isfinited(double x) { return !!::isfinite(x); }
57-
inline bool isnand(double x) { return !!::isnan(x); }
58-
inline bool isinff_(float x) { return !!::isinf(x); }
59-
inline bool isinfd(double x) { return !!::isinf(x); }
55+
inline bool isfinitef_(float x) { return !!std::isfinite(x); }
56+
inline bool isnanf_(float x) { return !!std::isnan(x); }
57+
inline bool isfinited(double x) { return !!std::isfinite(x); }
58+
inline bool isnand(double x) { return !!std::isnan(x); }
59+
inline bool isinff_(float x) { return !!std::isinf(x); }
60+
inline bool isinfd(double x) { return !!std::isinf(x); }
6061
#endif
6162

6263
#endif // NUMEXPR_CONFIG_HPP

0 commit comments

Comments
 (0)