Skip to content

Commit 59d2317

Browse files
committed
Added missing header file for _finite
1 parent 4e382c2 commit 59d2317

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

prism/defines.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@
136136
# define PRISM_HAS_FILESYSTEM
137137
#endif
138138

139+
/**
140+
* isinf on POSIX systems it accepts a float, a double, or a long double.
141+
* But Windows didn't provide isinf, so we need to use _finite instead.
142+
*/
143+
#ifdef _WIN32
144+
# include <float.h>
145+
#endif
146+
139147
/**
140148
* If you build prism with a custom allocator, configure it with
141149
* "-D PRISM_XALLOCATOR" to use your own allocator that defines xmalloc,

0 commit comments

Comments
 (0)