X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=lib%2F3rdparty%2Fmingw%2Fgs_support.c;h=dd0723823392832013e052e1e17506904be74d16;hp=4be8fe4573673d69bc3c2d359a719badb5f6bd2c;hb=82822656c3b240860ac8d5db139c56285634e8a5;hpb=251d21958c0cf60b190bfac974ae8db66309abb8 diff --git a/lib/3rdparty/mingw/gs_support.c b/lib/3rdparty/mingw/gs_support.c index 4be8fe45736..dd072382339 100644 --- a/lib/3rdparty/mingw/gs_support.c +++ b/lib/3rdparty/mingw/gs_support.c @@ -4,7 +4,14 @@ * No warranty is given; refer to the file DISCLAIMER.PD within this package. */ +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif +#define WIN32_NO_STATUS +#include /* abort () */ #include +#undef WIN32_NO_STATUS +#include /* STATUS macros */ #ifdef _WIN64 #include #endif @@ -22,10 +29,9 @@ PVOID RtlVirtualUnwind (ULONG HandlerType, ULONG64, ULONG64, PRUNTIME_FUNCTION, PCONTEXT, PVOID *, PULONG64, PVOID); #endif -typedef LONG NTSTATUS; +typedef LONG NTSTATUS; /* same as in ntdef.h / winternl.h */ #define UNW_FLAG_NHANDLER 0x00 -#define STATUS_STACK_BUFFER_OVERRUN ((NTSTATUS)0xC0000409L) typedef union { @@ -101,7 +107,7 @@ __declspec(noreturn) void __cdecl __report_gsfailure (ULONGLONG); __declspec(noreturn) void __cdecl __report_gsfailure (ULONGLONG StackCookie) { - volatile UINT_PTR __UNUSED_PARAM(cookie[2]); + volatile UINT_PTR cookie[2] __MINGW_ATTRIB_UNUSED; #ifdef _WIN64 ULONG64 controlPC, imgBase, establisherFrame; PRUNTIME_FUNCTION fctEntry;