Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pjscott
on Jan 1, 2014
|
parent
|
context
|
favorite
| on:
The Lost Art of C Structure Packing
GCC also supports that pragma, for compatibility with MSVC:
http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas....
Clang has this, too.
userbinator
on Jan 2, 2014
[–]
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:
http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas....
Clang has this, too.