Open szanni opened 1 year ago
Some poor souls like me need to support cross platform builds. This patch adds support for MSVC and leaves everything else intact.
MSVC does not support __attribute__ ((__packed__)). Add support via __pragma(pack(push, 1)) when compiling with MSVC.
__attribute__ ((__packed__))
__pragma(pack(push, 1))
Some poor souls like me need to support cross platform builds. This patch adds support for MSVC and leaves everything else intact.
MSVC does not support
__attribute__ ((__packed__))
. Add support via__pragma(pack(push, 1))
when compiling with MSVC.