From 4ab80f663e879bb2b83ae2891c47125ff3c7ad6f Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Thu, 27 Oct 2022 08:15:36 -0700 Subject: [PATCH] Remove backup implementation of Round for Windows platforms --- src/libImaging/Convert.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/libImaging/Convert.c b/src/libImaging/Convert.c index bdc680be44b..2b45d0cc4a8 100644 --- a/src/libImaging/Convert.c +++ b/src/libImaging/Convert.c @@ -43,13 +43,6 @@ #define L(rgb) ((INT32)(rgb)[0] * 299 + (INT32)(rgb)[1] * 587 + (INT32)(rgb)[2] * 114) #define L24(rgb) ((rgb)[0] * 19595 + (rgb)[1] * 38470 + (rgb)[2] * 7471 + 0x8000) -#ifndef round -double -round(double x) { - return floor(x + 0.5); -} -#endif - /* ------------------- */ /* 1 (bit) conversions */ /* ------------------- */