Skip to content

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 817925a commit 60f8169
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/begin_code.h
Expand Up @@ -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
Expand Down

0 comments on commit 60f8169

Please sign in to comment.