From 2e0770b0f32976a039335325756428d1d575f2f6 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 14 Feb 2011 08:48:44 -0700 Subject: [PATCH] fix MSVC build MSVC doesn't support __attribute__((__packed__)), but both it and GCC support pack pragmas, so that's what we'll use. --- src/windows.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/windows.cpp b/src/windows.cpp index c4809c072c..5a03a8bc80 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -833,11 +833,13 @@ class MySystem: public System { const char* crashDumpDirectory; }; -struct __attribute__ ((__packed__)) MINIDUMP_EXCEPTION_INFORMATION { +#pragma pack(push,4) +struct MINIDUMP_EXCEPTION_INFORMATION { DWORD thread; LPEXCEPTION_POINTERS exception; BOOL exceptionInCurrentAddressSpace; }; +#pragma pack(pop) struct MINIDUMP_USER_STREAM_INFORMATION; struct MINIDUMP_CALLBACK_INFORMATION;