diff --git a/osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/variant_helper.hpp b/osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/variant_helper.hpp index c153052..3ade3b8 100644 --- a/osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/variant_helper.hpp +++ b/osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/variant_helper.hpp @@ -18,7 +18,7 @@ #if defined(__has_include) # if __has_include() -# if _MSC_VER < 2000 // this is any version @ VS 2017 and earlier +# if defined(_MSC_VER) && _MSC_VER < 2000 // this is any version @ VS 2017 and earlier // VS 2017 (_MSC_VER or 19XX) has , but it just contains an error macro... # define __SHOULD_USE_MPARK_VARIANT 1 # else // _MSC_VER < 2000