Subject: Re: cross compile on solaris fails using SunStudio Compiler
To: None <firstname.lastname@example.org>
From: Alan Barrett <email@example.com>
Date: 09/05/2006 22:30:21
On Tue, 05 Sep 2006, David Laight wrote:
> IIRC __inline is a gcc-ism, because 'inline' was a valid user variable name
> before being added to C (posibly via C++) in C99.
> Possibly _inline is valid, in any case a simple #define will suffice.
> The '__attribute__ ((unused))' is definitely a gcc-ism.
> One of the NetBSD header files (maybe sys/cdefs.h) might contain something
> that should be used instead of '__attribute__ ((unused))' so that it
> can be #defined to the appropraite string (if any) for the compiler.
src/sys/sys/cdefs.h already defines both __inline and __attribute__(foo)
to the empty string if it thinks that the compiler won't like them. I
don't know what's going wrong with the compiler detection, or perhaps
the wrong <sys/cdefs.h> is being used.
--apb (Alan Barrett)