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
# include <windows.h>
# pragma warning( push )
# pragma warning( disable : 4091 )
# ifdef _MSC_VER
# pragma warning( push )
# pragma warning( disable : 4091 )
# endif
# include <dbghelp.h>
# pragma warning( pop )
# ifdef _MSC_VER
# pragma warning( pop )
# endif
#elif TRACY_HAS_CALLSTACK >= 2
# include <dlfcn.h>
# include <cxxabi.h>