diff options
-rw-r--r-- | prism/defines.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/prism/defines.h b/prism/defines.h index 785361728e..80db39bc77 100644 --- a/prism/defines.h +++ b/prism/defines.h @@ -137,6 +137,14 @@ #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, * xrealloc, xcalloc, and xfree. |