On Mon, 28 Jul 2008, Stefan Lapers wrote:
> On top of the mutils.h i found:
>
> #if defined(const)
> #define __const const
> #endif
>
> Something to do with __const not working in sun studio cc ?

Definitely, __const is not standard and there is no point in supporting it
since every single compiler out there supports const nowadays.
And as Joerg has already pointed out this #ifdef code looks very strange.

Anyway, you can workaround this problem by adding
   -D__const=const
to your suncc flags (say, to CC env var).

regards,
   Fedor.

>
>
> My environment:
>
> export PATH=$PATH:/opt/SUNWspro/bin/:/usr/sfw/bin/:/opt/coolstack/bin
> export CC='cc -m64'

Reply via email to