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:
Andrea Canciani 2011-09-02 12:34:04 +02:00
parent 04a7bad923
commit b1a1dfcdcf

View file

@ -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