See the patch, attached. It changes the default angle to 90, and
[rrdtool.git] / src / rrd_nan_inf.c
index 473f51b..ce0873e 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