diff --git a/pluginlib/include/pluginlib/impl/filesystem_helper.hpp b/pluginlib/include/pluginlib/impl/filesystem_helper.hpp index de16133c..3e9f025f 100644 --- a/pluginlib/include/pluginlib/impl/filesystem_helper.hpp +++ b/pluginlib/include/pluginlib/impl/filesystem_helper.hpp @@ -49,7 +49,7 @@ namespace fs = std::filesystem; } // namespace pluginlib # define PLUGINLIB__IMPL__FILESYSYEM_HELPER__HAS_STD_FILESYSTEM -# elif __has_include() +# elif __has_include() && __clang_major__ < 10 // MSVC deprecates and in favor of // use this macro to acknowledge this deprecation and unblock the build break # define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING