1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Resolved struct packing error and crash on OS X

This commit is contained in:
LRFLEW
2015-12-08 21:06:21 -06:00
parent af382b1884
commit c9be2e1bc9
3 changed files with 70 additions and 23 deletions

View File

@@ -90,6 +90,12 @@ extern "C" {
#define ioctlsocket ioctl
#endif // _WIN32
// Fixes issues on OS X
#if defined(_RCT2_H_) && !defined(_MSC_VER)
// use similar struct packing as MSVC for our structs
#pragma pack(1)
#endif
#ifdef __cplusplus
#include <list>