mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:07:38 +00:00
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:
parent
301fdac101
commit
34d32d32df
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue