[haiku-development] Re: GCC 2.95 and certain #define macros

  • From: "Zenja Solaja" <solaja@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 21 Aug 2007 22:06:03 +1000

On 8/19/07, Ryan Leavengood <leavengood@xxxxxxxxx> wrote:
>
>
> #define PLATFORM(WTF_FEATURE) (defined( WTF_PLATFORM_##WTF_FEATURE )
> && WTF_PLATFORM_##WTF_FEATURE)
>
>
>
This may be a silly question, but have you tried adding a continuation
character '\' at the end of the first line of the macro.  I've had similar
problems with the 2.9x compiler, and adding a trailing '\' fixes the issue.

ie.

#define PLATFORM(WTF_FEATURE) (defined( WTF_PLATFORM_##WTF_FEATURE )  \
&& WTF_PLATFORM_##WTF_FEATURE)

Regards,
Zenja

Other related posts: