Added handling for missing rint function, copied over from

NSBrowser.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13331 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2002-04-03 00:30:05 +00:00
parent 301fdac101
commit 34d32d32df

View file

@ -23,9 +23,8 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
*/
/* FIXME - HAVE_RINT */
#include <gnustep/gui/config.h>
#include <math.h>
#include <gnustep/gui/config.h>
#include <Foundation/NSArray.h>
#include <Foundation/NSDebug.h>
@ -39,6 +38,13 @@
#include <AppKit/NSScrollView.h>
#include <AppKit/PSOperators.h>
#ifndef HAVE_RINT
static double rint(double a)
{
return (floor(a+0.5));
}
#endif
#define MIN_LABEL_DISTANCE 40
#define MIN_MARK_DISTANCE 5