From 4b5053b5e4addcaa1f1cee015544bbb1c7fc7797 Mon Sep 17 00:00:00 2001 From: crc Date: Wed, 18 Apr 2018 16:34:07 +0000 Subject: [PATCH] rre/windows: no longer define round() FossilOrigin-Name: d736a60dcb2257fe74be5f5a97f00cdaa9995823d36d31008ed77736532fce00 --- interfaces/rre_windows.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/interfaces/rre_windows.c b/interfaces/rre_windows.c index 7d105b1..5d50dd2 100644 --- a/interfaces/rre_windows.c +++ b/interfaces/rre_windows.c @@ -478,18 +478,6 @@ int is_even(double d) { return 2.0 * int_part == d; } -double round(double d) { - double i = floor(d); - d -= i; - if(d < 0.5) - return i; - if(d > 0.5) - return i + 1.0; - if(is_even(i)) - return i; - return i + 1.0; -} - void float_push(double value) { fsp++; Floats[fsp] = value;