diff --git a/src/profiling.cpp b/src/profiling.cpp index fd476ba47e3..12ebb22bfa8 100644 --- a/src/profiling.cpp +++ b/src/profiling.cpp @@ -25,10 +25,14 @@ #include #ifdef WZ_PROFILING_NVTX -#pragma warning( push ) -#pragma warning( disable : 4191 ) +#if defined( _MSC_VER ) +# pragma warning( push ) +# pragma warning( disable : 4191 ) +#endif #include -#pragma warning( pop ) +#if defined( _MSC_VER ) +# pragma warning( pop ) +#endif #endif #ifdef WZ_PROFILING_VTUNE