Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed structure alignment mismatch between Visual Studio and gcc on 6…
Browse files Browse the repository at this point in the history
…4-bit architectures.
  • Loading branch information
slouken committed Jan 9, 2012
1 parent dc1a7fa commit 988cbaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/begin_code.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 988cbaf

Please sign in to comment.