Fix Win32 compilation with WITH_DBGHELP on non-MSVC

This commit is contained in:
Jonathan G Rennison
2019-04-03 23:54:12 +01:00
parent a404db80f6
commit 44c8696b2a

View File

@@ -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) || defined(WITH_DBGHELP)
#if defined(_MSC_VER)
static const uint MAX_SYMBOL_LEN = 512; static const uint MAX_SYMBOL_LEN = 512;
static const uint MAX_FRAMES = 64; static const uint MAX_FRAMES = 64;
#if defined(_MSC_VER)
#pragma warning(disable:4091) #pragma warning(disable:4091)
#endif #endif
#include <dbghelp.h> #include <dbghelp.h>