mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
31869f6fd6
commit
37f98cebdf
5 changed files with 29 additions and 18 deletions
|
@ -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
|
||||
|
|
12
Headers/gnustep/gui/config.h.bot
Normal file
12
Headers/gnustep/gui/config.h.bot
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue