Added missing header file for _finite

This commit is contained in:
Hiroshi SHIBATA 2024-12-03 09:18:46 +09:00
parent 4e382c285f
commit 59d23174c0
Notes: git 2024-12-03 00:53:36 +00:00

View File

@ -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 <float.h>
#endif
/**
* If you build prism with a custom allocator, configure it with
* "-D PRISM_XALLOCATOR" to use your own allocator that defines xmalloc,