diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-09-02 12:34:04 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-09-02 12:45:49 +0200 |
commit | b1a1dfcdcfb865a4867541f91897f7dda556d206 (patch) | |
tree | 44b0a3ba24a892a7f5f8ccd78d2b97853af486ba | |
parent | 04a7bad9237a1e0f2887328860ba29695ad32199 (diff) |
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
-rw-r--r-- | src/cairo-surface-observer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-surface-observer.c b/src/cairo-surface-observer.c index a0dcb2f5b..65f6585d6 100644 --- a/src/cairo-surface-observer.c +++ b/src/cairo-surface-observer.c @@ -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 |