Hey, i am porting a linux library which uses __attribute__((__packed__)) (compiled with gcc).
I think that suncc allows, like vc++, the use of #pragma pack(1) to do the equivalent thing. I also read that __attribute__((__packed__)) is also supported on recent opensolaris versions. So: 1) Is it really the case, and from which version __attribute__((__packed__)) is available (which version of _SUNPRO_C should I check) ? 2) is it better to use #pragma pack(1) instead of __attribute__((__packed__)) if the latter is available ? thank you Vincent Torri -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20090917/38610941/attachment.html>