4 ms·
GCC also supports that pragma, for compatibility with MSVC: http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas.html http://gcc.gnu.org/onlinedocs/gcc/
by pjscott 13y ago
GCC also supports that pragma, for compatibility with MSVC:
http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas.html http://gcc.gnu.org/onlinedocs/gcc/Structure-Packing-Pragmas....
Clang has this, too.
- userbinator 13y agoAnd MSVC doesn't support GCC's pragma, so for optimal portability #pragma pack(1) is my preferred way of doing it.