summary refs log tree commit diff stats
path: root/lib/nimbase.h
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-03-10 18:13:48 +0200
committerZahary Karadjov <zahary@gmail.com>2014-03-10 18:13:48 +0200
commit1546d210c5739213ebf93eb0cb624ca7a9fe9ad6 (patch)
tree8841ed078603c2ac3022b4d62d6e69497ce26dd5 /lib/nimbase.h
parent85fe5e1940efbde41ac88113e8cc6a954b0414b9 (diff)
downloadNim-1546d210c5739213ebf93eb0cb624ca7a9fe9ad6.tar.gz
fix #971
Diffstat (limited to 'lib/nimbase.h')
-rw-r--r--lib/nimbase.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index 1100e084b..b16b27b2c 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -314,6 +314,9 @@ static unsigned long nimNaN[2]={0xffffffff, 0x7fffffff};
 #    define INF INFINITY
 #  elif defined(HUGE_VAL)
 #    define INF  HUGE_VAL
+#  elif defined(_MSC_VER)
+#    include <float.h>
+#    define INF (DBL_MAX+DBL_MAX)
 #  else
 #    define INF (1.0 / 0.0)
 #  endif