discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Usage of rint() in gui


From: Pierre-Yves Rivaille
Subject: Re: Usage of rint() in gui
Date: Tue, 9 Apr 2002 09:52:26 +0200 (MEST)

We could use nearbyint/nearbyintf or round which are almost equivalent, 
whenever rint is not available.
(btw rint seems to be the only choice on solaris 7).

        Pierre-Yves

> Two new files are now using rint() in the gui library (NSMatrix and 
> NSClipView) as this function is not available on all systems (namely not 
> on MS Window) it is not possible to compile gui on such a system. To 
> work around this the configuration checks for this function and sets a 
> flag whether it is found. This information is not used in these two 
> files. So they must be patched just as NSBrowser or NSRulerView.
> Or as this becomes more common now, we could move the replacement 
> definition of rint() up into the config.h file itself. Any ideas on this 
> solution?
> 
> Fred








reply via email to

[Prev in Thread] Current Thread [Next in Thread]