On Fri, Aug 12, 2011 at 12:59 PM, Michael Mc Donnell michael@mcdonnell.dkwrote:
Is it ok to use roundf and rintf? They're both C99 functions.
Hello,
As far as I know C99 is not allowed. However, you can emulate round by doing:
floorf(val + 0.5f)
According to [1] floorf is C99 (only floor is C89), but including math.h in wine actually gives you msvcrt's math.h which is a bit different and doesn't even have round nor rint. Gdiplus uses floorf [2] so it should be OK.
Octavian
[1] http://linux.die.net/man/3/floorf [2] http://source.winehq.org/git/wine.git/?a=search&h=HEAD&st=grep&s...