mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
Revert "hb-private.hh: Add fallback implementation for round()"
This reverts commit b9dcbb1f83.
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.
This commit is contained in:
1 parent
791d80a1d4
commit
86a0ac284f
1 file changed
-13
@@ -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 */
|
#endif /* HB_PRIVATE_HH */
|
||||||
Reference in new issue
Block a user