summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-19 03:31:40 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-19 03:31:40 -0800
commit207de4a3b3d1f95cd0ae7d79f06ceb30654b01f5 (patch)
tree95b216758926f372073e5ca38affd54c8b20ebcb
parent2a49cd176e4046cf08cd6cc1350216031e4d847b (diff)
parent988bc2273099c6e3da4f88fc5097e88664653960 (diff)
downloadmruby-207de4a3b3d1f95cd0ae7d79f06ceb30654b01f5.tar.gz
mruby-207de4a3b3d1f95cd0ae7d79f06ceb30654b01f5.zip
Merge pull request #646 from cremno/msvc-include-float-header
MSVC: include float header for _isnan and _finite
-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