> > 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 > > your suncc flags (say, to CC env var). > > > > regards, > > Fedor. > > Hi Fedor, > > Thanks, i'm afraid the code won't even compile when i > define it this way.. a bit further it bails out with > a void function trying to return a value... > Strange how i managed to get it compiled with gcc... > :)
Just as an update, its compiling now.. i changed the offending code. I'll send the updates to mhash development mailing list. thanks again for pointing me in the right direction ! Stefan > > thanks ! > > > > > > > My environment: > > > > > > export > > > PATH=$PATH:/opt/SUNWspro/bin/:/usr/sfw/bin/:/opt/cools > > > tack/bin > > > export CC='cc -m64' > > _______________________________________________ > > tools-compilers mailing list > > tools-compilers at opensolaris.org -- This message posted from opensolaris.org
