Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit architectures.
This commit is contained in:
parent
5d1613d59e
commit
fc8603b5d6
1 changed files with 5 additions and 0 deletions
|
@ -87,7 +87,12 @@
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma nopackwarning
|
#pragma nopackwarning
|
||||||
#endif
|
#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)
|
#pragma pack(push,4)
|
||||||
|
#endif
|
||||||
#endif /* Compiler needs structure packing set */
|
#endif /* Compiler needs structure packing set */
|
||||||
|
|
||||||
/* Set up compiler-specific options for inlining functions */
|
/* Set up compiler-specific options for inlining functions */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue