From 662e5c8ce4216db80c569df3bde4dc7fefeb4c89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 26 Oct 2007 12:53:25 +0000 Subject: [PATCH] Fixed warnings when building something for BeOS. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22732 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/build/HaikuBuildCompatibility.h | 14 ++++++++------ headers/build/private/interface/ColorTools.h | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/headers/build/HaikuBuildCompatibility.h b/headers/build/HaikuBuildCompatibility.h index a019306c57..1e78edc21f 100644 --- a/headers/build/HaikuBuildCompatibility.h +++ b/headers/build/HaikuBuildCompatibility.h @@ -52,13 +52,15 @@ typedef int socklen_t; __attribute__((format(__printf__, _format_, _args_))) #endif +#ifdef HAIKU_TARGET_PLATFORM_LIBBE_TEST // BeOS version of BeBuild.h defines this -#define _IMPEXP_ROOT __declspec(dllimport) -#define _IMPEXP_BE __declspec(dllimport) -#define _IMPEXP_MEDIA __declspec(dllimport) -#define _IMPEXP_TRACKER __declspec(dllimport) -#define _IMPEXP_TRANSLATION __declspec(dllimport) -#define _IMPEXP_DEVICE __declspec(dllimport) +# define _IMPEXP_ROOT __declspec(dllimport) +# define _IMPEXP_BE __declspec(dllimport) +# define _IMPEXP_MEDIA __declspec(dllimport) +# define _IMPEXP_TRACKER __declspec(dllimport) +# define _IMPEXP_TRANSLATION __declspec(dllimport) +# define _IMPEXP_DEVICE __declspec(dllimport) +#endif #ifdef __cplusplus class BBuffer; diff --git a/headers/build/private/interface/ColorTools.h b/headers/build/private/interface/ColorTools.h index 7c91767fe3..64fe4582ed 100644 --- a/headers/build/private/interface/ColorTools.h +++ b/headers/build/private/interface/ColorTools.h @@ -48,7 +48,7 @@ All rights reserved. #include -#if B_BEOS_VERSION <= B_BEOS_VERSION_MAUI +#if B_BEOS_VERSION <= B_BEOS_VERSION_5 namespace BExperimental {