[haiku-commits] Re: BRANCH mmadia-github.separate-build-environment - in headers/build: config_target os/support os_target/support

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 04 Aug 2012 13:14:00 +0200

On 2012-08-04 at 03:51:53 [+0200], Matt Madia <mattmadia@xxxxxxxxx> wrote:
> On 8/3/12, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> > On 2012-08-03 at 02:49:15 [+0200], 
> > mmadia-github.separate-build-environment
> > <community@xxxxxxxxxxxx> wrote:
> 
> > Constant declarations must be handled like function prototypes.  Define a
> > new
> > helper macro similar to _HAIKU_BUILD_DECLARE_FUNCTION in HaikuBuild.h for
> > that purpose (untested):
> >
> >     #ifdef _HAIKU_BUILD_LIBROOT_FUNCTION_WRAPPER
> >         #define _HAIKU_BUILD_DECLARE_CONSTANT(type, name) \
> >             extern type _haiku_build##name; \
> >     #else
> >         #define _HAIKU_BUILD_DECLARE_CONSTANT(type, name) \
> >             extern type _haiku_build##name; \
> >             extern type name \
> >                 __asm__(_HAIKU_BUILD_ASMNAME("_haiku_build" #name));
> >     #endif
> 
> Is there supposed to be that trailing slash before #else?

No, that's just a copy and paste oversight.

CU, Ingo

Other related posts: