mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-30 02:50:47 +02:00
win32: Fix linking
round() is not available on win32 and causes the linking to fail with: cairo-surface-observer.obj : error LNK2019: unresolved external symbol round referenced in function percent
This commit is contained in:
parent
04a7bad923
commit
b1a1dfcdcf
1 changed files with 2 additions and 1 deletions
|
|
@ -1603,7 +1603,8 @@ print_record (cairo_output_stream_t *stream,
|
|||
static double percent (cairo_time_t a, cairo_time_t b)
|
||||
{
|
||||
/* Fake %.1f */
|
||||
return round (_cairo_time_to_s (a) * 1000 / _cairo_time_to_s (b)) / 10;
|
||||
return _cairo_round (_cairo_time_to_s (a) * 1000 /
|
||||
_cairo_time_to_s (b)) / 10;
|
||||
}
|
||||
|
||||
static cairo_bool_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue