Put RINT defs in config.h

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13420 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-04-11 02:18:13 +00:00
parent 31869f6fd6
commit 37f98cebdf
5 changed files with 29 additions and 18 deletions

View file

@ -1,5 +1,10 @@
2002-04-10 Adam Fedor <fedor@gnu.org>
* Headers/gnustep/gui/config.h.bot: New file implements RINT defs.
* Headers/gnustep/gui/config.h.in: Regen.
* Source/NSBrowser.m: Remove RINT defs.
* Source/NSRulerView.m: Likewise.
* Headers/gnustep/gui/AppKitExceptions.h: Add GNUstep exception.
* Source/externs.m: Idem.
* Headers/gnustep/gui/DPSOperators.h: Remove currentgstate, gstate

View file

@ -0,0 +1,12 @@
/* Define for those who don't have rintf and/or rint */
#ifndef HAVE_RINTF
#define rintf rint
#endif
#ifndef HAVE_RINT
static double rint(double a)
{
return (floor(a+0.5));
}
#endif

View file

@ -8,3 +8,15 @@
/* Define if you have the m library (-lm). */
#undef HAVE_LIBM
/* Define for those who don't have rintf and/or rint */
#ifndef HAVE_RINTF
#define rintf rint
#endif
#ifndef HAVE_RINT
static double rint(double a)
{
return (floor(a+0.5));
}
#endif

View file

@ -53,17 +53,6 @@
/* Cache */
static float scrollerWidth; // == [NSScroller scrollerWidth]
#ifndef HAVE_RINTF
#define rintf rint
#endif
#ifndef HAVE_RINT
static double rint(double a)
{
return (floor(a+0.5));
}
#endif
#define NSBR_COLUMN_SEP 6
#define NSBR_VOFFSET 2

View file

@ -38,13 +38,6 @@
#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