diff options
author | Eugene Sandulenko | 2004-11-14 11:46:29 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-11-14 11:46:29 +0000 |
commit | 2fb46f1b9569e2b8442f8d5414a888dc9e1ac0b0 (patch) | |
tree | 1e18141fde56a140c9d8afaf0a390c9c716ccbd5 /backends/midi | |
parent | 504d54e8ab65dc68d71ac1a77ad4a393fb69e3e9 (diff) | |
download | scummvm-rg350-2fb46f1b9569e2b8442f8d5414a888dc9e1ac0b0.tar.gz scummvm-rg350-2fb46f1b9569e2b8442f8d5414a888dc9e1ac0b0.tar.bz2 scummvm-rg350-2fb46f1b9569e2b8442f8d5414a888dc9e1ac0b0.zip |
Make #pragma pack really multiplatform. Old code didn't work on
non-Win32 platforms.
svn-id: r15805
Diffstat (limited to 'backends/midi')
-rw-r--r-- | backends/midi/mt32/structures.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/mt32/structures.h b/backends/midi/mt32/structures.h index bad3faf0ee..d64f0a44f2 100644 --- a/backends/midi/mt32/structures.h +++ b/backends/midi/mt32/structures.h @@ -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() |