Make #pragma pack really multiplatform. Old code didn't work on

non-Win32 platforms.

svn-id: r15805
This commit is contained in:
Eugene Sandulenko 2004-11-14 11:46:29 +00:00
parent 504d54e8ab
commit 2fb46f1b95

View File

@ -47,7 +47,7 @@ typedef signed char Bit8s;
// Since sysex allows this memory to be written to in blocks of bytes,
// we keep this packed so that we can copy data into the various
// banks directly
#ifdef __GNUC__
#if defined(_MSC_VER) || defined (__MINGW32__)
#pragma pack(push, 1)
#else
#pragma pack(1)
@ -180,7 +180,7 @@ union MT32RAMFormat {
MemBanks banks;
} MT32EMU_ALIGN_PACKED;
#ifdef __GNUC__
#if defined(_MSC_VER) || defined (__MINGW32__)
#pragma pack(pop)
#else
#pragma pack()