gcc's pragma pack
807578Jan 20 2006 — edited Jan 21 2006I have inherited some linux code which uses gcc's pragma pack(push, n) and pragma pack(pop).
#pragma pack(push, n)
#pragma pack(pop)
When I try to compile this code using gcc on Solaris/sparc I get:
warning: #pragma pack(push[, id], <n> is not supported on this warning: #pragma pack(pop[, id], <n> is not supported on this target
Anyone know how I can get past this problem. Is there an equivalent pragma that I can use with gcc for Solaris/sparc. Or is there an way to use something equivalent and compile with Sun studio 11.
Thanks in advance!