From 8bd2c11fc48ac2284087bfe4119fc041fd0ffb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 13 Nov 2005 19:43:42 +0000 Subject: [PATCH] Moved the declaration of roundf() to HaikuBuildCompatibility.h - it's missing from math.h but exported by libroot.so. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14903 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/build/HaikuBuildCompatibility.h | 2 ++ src/kits/interface/View.cpp | 10 +--------- src/kits/interface/Window.cpp | 4 ---- src/servers/app/drawing/Painter/Painter.cpp | 5 ----- 4 files changed, 3 insertions(+), 18 deletions(-) diff --git a/headers/build/HaikuBuildCompatibility.h b/headers/build/HaikuBuildCompatibility.h index 3536e0f26a..f574a3ee17 100644 --- a/headers/build/HaikuBuildCompatibility.h +++ b/headers/build/HaikuBuildCompatibility.h @@ -36,6 +36,8 @@ extern size_t strlcpy(char *dest, const char *source, size_t length); extern char *strcasestr(const char *string, const char *searchString); +extern float roundf(float value); + #ifdef __cplusplus } // extern "C" #endif diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index fde89b3563..d01463c5cf 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -49,22 +49,14 @@ #include #include -// 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 # include # define STRACE(x) printf x -#else -# define STRACE(x) ; -#endif - -#ifdef DEBUG_BVIEW # define BVTRACE PrintToStream() #else +# define STRACE(x) ; # define BVTRACE ; #endif diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index c6b3c6d9b6..665a43392d 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -42,10 +42,6 @@ #include #include -// 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_WIN #ifdef DEBUG_WIN diff --git a/src/servers/app/drawing/Painter/Painter.cpp b/src/servers/app/drawing/Painter/Painter.cpp index 755237eb29..2f524a76a1 100644 --- a/src/servers/app/drawing/Painter/Painter.cpp +++ b/src/servers/app/drawing/Painter/Painter.cpp @@ -39,11 +39,6 @@ #include "Painter.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 - #if ALIASED_DRAWING // in this case, we _cannot_ use the outline rasterizer. # define USE_OUTLINE_RASTERIZER 0