Re: GCC does not support lrint ?
From: daeron (daeron_at_some.net)
Date: 10/02/04
- Next message: Simon Barner: "Re: GCC does not support lrint ?"
- Previous message: daeron: "Re: GCC does not support lrint ?"
- In reply to: Philip Paeps: "Re: GCC does not support lrint ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 03 Oct 2004 03:08:36 +1000
Philip Paeps wrote:
>
> It appears there is no lrint()-family of functions in FreeBSD
> (yet), but unless you're dealing with longs, rint() should
> probably do what you want.
>
> It's a function, not a type:
>
<http://www.opengroup.org/onlinepubs/009695399/functions/lrint.html>
>
> Just stick something like this in whatever file that happens
> to need lrint():
>
> #if defined(__FreeBSD__)
> # define lrint(x) rint(x)
> # define lrintf(x) rintf(x)
> #endif
Ar, Thank you, you get the scholar & gentleman award for the
day ;-)
> Also see <http://www.freebsd.org/projects/c99/index.html> for
> the status of C99 support in FreeBSD.
>
> - Philip
>
- Next message: Simon Barner: "Re: GCC does not support lrint ?"
- Previous message: daeron: "Re: GCC does not support lrint ?"
- In reply to: Philip Paeps: "Re: GCC does not support lrint ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|