[cairo] _cairo_lround in tests

Antoine Azar cairo at antoineazar.com
Thu Feb 7 14:13:28 PST 2008

As Peter noticed, my replacement of round() (which doesn't compile on 
win32) to _cairo_lround() in test/get-path-extents.c is incorrect. I 
just replaced it by floor ( value + 0.5 ), which should have the same 
behavior as round() . Here's the corresponding patch.


At 04:28 PM 2/7/2008, Peter Weilbacher wrote:
>Hi Antoine,
>seems like the _cairo_lround in test/get-path-extents.c came from you
>commit. Is there no other way to fix this for Windows? Because as far
>as I understand _cairo_lround is an internal cairo function and shouldn't
>be used outside the library itself. It breaks compiling that test on OS/2
>at least because that function isn't exported from the cairo DLL.
>    Peter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Fixed-rounding-function-call.patch
Type: application/octet-stream
Size: 988 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080207/c817a2bd/attachment.obj 

More information about the cairo mailing list