From 59d23174c01d201b4a1bbc0eaab32b167a3cb975 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 3 Dec 2024 09:18:46 +0900 Subject: [PATCH] Added missing header file for _finite --- prism/defines.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/prism/defines.h b/prism/defines.h index 785361728e..80db39bc77 100644 --- a/prism/defines.h +++ b/prism/defines.h @@ -136,6 +136,14 @@ # define PRISM_HAS_FILESYSTEM #endif +/** + * isinf on POSIX systems it accepts a float, a double, or a long double. + * But Windows didn't provide isinf, so we need to use _finite instead. + */ +#ifdef _WIN32 +# include +#endif + /** * If you build prism with a custom allocator, configure it with * "-D PRISM_XALLOCATOR" to use your own allocator that defines xmalloc,