From 1546d210c5739213ebf93eb0cb624ca7a9fe9ad6 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 10 Mar 2014 18:13:48 +0200 Subject: fix #971 --- lib/nimbase.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 +# define INF (DBL_MAX+DBL_MAX) # else # define INF (1.0 / 0.0) # endif -- cgit 1.4.1-2-gfad0