summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorCremno <[email protected]>2012-12-19 11:32:12 +0100
committerCremno <[email protected]>2012-12-19 11:32:12 +0100
commit988bc2273099c6e3da4f88fc5097e88664653960 (patch)
tree95b216758926f372073e5ca38affd54c8b20ebcb /src
parent2a49cd176e4046cf08cd6cc1350216031e4d847b (diff)
downloadmruby-988bc2273099c6e3da4f88fc5097e88664653960.tar.gz
mruby-988bc2273099c6e3da4f88fc5097e88664653960.zip
MSVC: include float header for _isnan and _finite
Diffstat (limited to 'src')
-rw-r--r--src/sprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sprintf.c b/src/sprintf.c
index 0e8ac830f..750b17d25 100644
--- a/src/sprintf.c
+++ b/src/sprintf.c
@@ -17,6 +17,10 @@
#include <math.h>
#include <ctype.h>
+#ifdef _MSC_VER
+#include <float.h>
+#endif
+
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif