* no longer needs to define roundf() as it's now part of libroot.so (like on BeOS).
* for the libbe_test target, though, I need to declare it, although it's also declared in BeOS' math.h - Ingo?? * removed comment about B_ASYNCHRONOUS_CONTROLS - it's only used by our control classes to behave differently depending on that flag (mouse tracking). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14892 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -46,8 +46,13 @@
|
||||
#include <MessagePrivate.h>
|
||||
#endif
|
||||
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
|
||||
// TODO: I have no idea why this is, but the libbe_test target needs this
|
||||
#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST
|
||||
extern "C" float roundf(float x);
|
||||
#endif
|
||||
|
||||
//#define DEBUG_BVIEW
|
||||
#ifdef DEBUG_BVIEW
|
||||
@@ -65,14 +70,6 @@
|
||||
|
||||
#define MAX_ATTACHMENT_SIZE 49152
|
||||
|
||||
static inline float
|
||||
roundf(float v)
|
||||
{
|
||||
if (v >= 0.0)
|
||||
return floorf(v + 0.5);
|
||||
else
|
||||
return ceilf(v - 0.5);
|
||||
}
|
||||
|
||||
static property_info sViewPropInfo[] = {
|
||||
{ "Frame", { B_GET_PROPERTY, 0 },
|
||||
|
||||
Reference in New Issue
Block a user