On 17 Sep 2009, at 21:13, Dave Pagan wrote: > Alan Coopersmith wrote: >> Dave Pagan wrote: >> >>> Vincent Torri wrote: >>> >>>> 1) Is it really the case, and from which version >>>> __attribute__((__packed__)) is available (which version of >>>> _SUNPRO_C should I check) ? >>>> >>>> >>>> Check for __SUNPRO_C == 0x510 >>>> >>>> >>>> hmm, in another answer about __attribute__, you told me to check >>>> __SUNPRO_C with 0x590. Is it still 0x510 ? >>>> >>> The value of 0x590 applied to Sun Studio 12,the previous release >>> of Sun >>> Studio. The packed attribute was not available until this release, >>> which >>> is why the value for __SUNPRO_C is different. >>> >> >> 0x510 < 0x590 - you didn't really make the version number go >> backwards did you? >> That will break existing code that checks for __SUNPRO_C >= 0x550 >> and such. >> > > My mistake. The value is 0x5100 ...
This breaks the versioning algorithm described at <http://developers.sun.com/sunstudio/products/faqs/cpp.html#q1 > (ie a 3 digit hex number). What's the new algorithm? Cheers, Chris