From 5fb0f10d2d354aad5d245c806d61dfa8d3863e64 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Thu, 1 Sep 2022 20:49:05 +0200 Subject: [PATCH] Use `ifdef` instead of `if` for win32 (#238) --- pluginlib/include/pluginlib/class_loader_imp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginlib/include/pluginlib/class_loader_imp.hpp b/pluginlib/include/pluginlib/class_loader_imp.hpp index d45b5914..8951b9f3 100644 --- a/pluginlib/include/pluginlib/class_loader_imp.hpp +++ b/pluginlib/include/pluginlib/class_loader_imp.hpp @@ -319,7 +319,7 @@ std::vector ClassLoader::getCatkinLibraryPaths() boost::split(catkin_prefix_paths, env_catkin_prefix_paths, boost::is_any_of(os_pathsep)); BOOST_FOREACH(std::string catkin_prefix_path, catkin_prefix_paths) { boost::filesystem::path path(catkin_prefix_path); -#if _WIN32 +#ifdef _WIN32 boost::filesystem::path bin("bin"); lib_paths.push_back((path / bin).string()); #endif