Hacker News new | past | comments | ask | show | jobs | submit login

GCC also supports that pragma, for compatibility with MSVC:

http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas....

Clang has this, too.




And MSVC doesn't support GCC's pragma, so for optimal portability #pragma pack(1) is my preferred way of doing it.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: