fix MSVC build

MSVC doesn't support __attribute__((__packed__)), but both it and GCC
support pack pragmas, so that's what we'll use.
This commit is contained in:
Joel Dice 2011-02-14 08:48:44 -07:00
parent 8d50d0fd76
commit 2e0770b0f3

View File

@ -833,11 +833,13 @@ class MySystem: public System {
const char* crashDumpDirectory; const char* crashDumpDirectory;
}; };
struct __attribute__ ((__packed__)) MINIDUMP_EXCEPTION_INFORMATION { #pragma pack(push,4)
struct MINIDUMP_EXCEPTION_INFORMATION {
DWORD thread; DWORD thread;
LPEXCEPTION_POINTERS exception; LPEXCEPTION_POINTERS exception;
BOOL exceptionInCurrentAddressSpace; BOOL exceptionInCurrentAddressSpace;
}; };
#pragma pack(pop)
struct MINIDUMP_USER_STREAM_INFORMATION; struct MINIDUMP_USER_STREAM_INFORMATION;
struct MINIDUMP_CALLBACK_INFORMATION; struct MINIDUMP_CALLBACK_INFORMATION;