From 44c8696b2ade6d97b5485f5c545a397d691ec6ca Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Wed, 3 Apr 2019 23:54:12 +0100 Subject: [PATCH] Fix Win32 compilation with WITH_DBGHELP on non-MSVC --- src/os/windows/crashlog_win.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/windows/crashlog_win.cpp b/src/os/windows/crashlog_win.cpp index 0fc345cdba..6cdf6e718f 100644 --- a/src/os/windows/crashlog_win.cpp +++ b/src/os/windows/crashlog_win.cpp @@ -325,10 +325,9 @@ static char *PrintModuleInfo(char *output, const char *last, HMODULE mod) } #if defined(_MSC_VER) || defined(WITH_DBGHELP) -#if defined(_MSC_VER) static const uint MAX_SYMBOL_LEN = 512; static const uint MAX_FRAMES = 64; - +#if defined(_MSC_VER) #pragma warning(disable:4091) #endif #include