Don't use MSVC pragmas on gcc/clang (cygwin).

This commit is contained in:
Bartosz Taudul 2018-12-29 00:42:38 +01:00
parent 5e4b5850af
commit 0a6c6606bf

View File

@ -5,10 +5,14 @@
#if TRACY_HAS_CALLSTACK == 1 #if TRACY_HAS_CALLSTACK == 1
# include <windows.h> # include <windows.h>
# ifdef _MSC_VER
# pragma warning( push ) # pragma warning( push )
# pragma warning( disable : 4091 ) # pragma warning( disable : 4091 )
# endif
# include <dbghelp.h> # include <dbghelp.h>
# ifdef _MSC_VER
# pragma warning( pop ) # pragma warning( pop )
# endif
#elif TRACY_HAS_CALLSTACK >= 2 #elif TRACY_HAS_CALLSTACK >= 2
# include <dlfcn.h> # include <dlfcn.h>
# include <cxxabi.h> # include <cxxabi.h>