mirror of
https://github.com/yawut/SDL.git
synced 2026-07-02 00:13:39 -05:00
Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit architectures.
This commit is contained in:
parent
094db18796
commit
1781323edc
|
|
@ -87,7 +87,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
|
||||
#endif /* Compiler needs structure packing set */
|
||||
|
||||
/* Set up compiler-specific options for inlining functions */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user