Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit architectures.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2012-01-09 07:06:36 -05:00
parent 511bc635cf
commit 4f667a32b5

View File

@@ -132,7 +132,12 @@
#ifdef __BORLANDC__
#pragma nopackwarning
#endif
#ifdef _M_X64
/* Use 8-byte alignment on 64-bit architectures, so pointers are aligned */
#pragma pack(push,8)
#else
#pragma pack(push,4)
#endif
#elif (defined(__MWERKS__) && defined(__MACOS__))
#pragma options align=mac68k4byte
#pragma enumsalwaysint on