From 86a0ac284fc4c2ce96354bfdf32878b6db5c77bd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 14 Mar 2018 15:51:33 +0100 Subject: [PATCH] Revert "hb-private.hh: Add fallback implementation for round()" This reverts commit b9dcbb1f8312d8606b230f75594d40b7d4087004. This is gross. Should be only done if a specific macro is defined. Not the other way around. This fails my build as autotools companions where not added anyway. --- src/hb-private.hh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/hb-private.hh b/src/hb-private.hh index 62a103cf7..daa496e98 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -1070,17 +1070,4 @@ struct hb_string_t }; -/* fallback for round() */ -#if !defined (HAVE_ROUND) && !defined (HAVE_DECL_ROUND) -static inline double -round (double x) -{ - if (x >= 0) - return floor (x + 0.5); - else - return ceil (x - 0.5); -} -#endif - - #endif /* HB_PRIVATE_HH */