Code

make sure fole is opened binary on restore ... to make things work on windows --...
[rrdtool-all.git] / program / src / rrd_nan_inf.c
index 473f51b0e4929d8ab3cc1e373177d3a1dd55a111..ce0873e5ed37003c7e4c12dd7ae29866870aae0a 100644 (file)
@@ -2,8 +2,10 @@
 
 #if defined(WIN32)
 
+#include <math.h>
+
 double set_to_DNAN(void) { return (double)fmod(0.0,0.0); }
-double set_to_DINF(void) { return (double)log(0.0); }
+double set_to_DINF(void) { return (double)fabs((double)log(0.0)); }
 
 #else