Skip to content
Snippets Groups Projects
Commit 2a505d9e authored by Sujin Philip's avatar Sujin Philip
Browse files

Fix "#pragma warning" warning in gcc

Check if the compiler is MSVC before testing for MSVC version and using MSVC specific "#pragma warning"
parent 3db0880c
No related merge requests found
......@@ -73,12 +73,12 @@
#ifndef vtkSMPThreadLocal_h
#define vtkSMPThreadLocal_h
#if _MSC_VER <= 1700
#if defined(_MSC_VER) && _MSC_VER <= 1700
#pragma warning(push)
#pragma warning(disable : 4345)
#endif
#include <tbb/enumerable_thread_specific.h>
#if _MSC_VER <= 1700
#if defined(_MSC_VER) && _MSC_VER <= 1700
#pragma warning(pop)
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment