Skip to content

Commit 63b0e7e

Browse files
mini-1235SteveMacenski
authored andcommitted
Only include get_package_share_path in Lyrical and newer
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
1 parent c15a422 commit 63b0e7e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nav2_ros_common/include/nav2_ros_common/node_utils.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#include "rcl_interfaces/srv/list_parameters.hpp"
2727
#include "pluginlib/exceptions.hpp"
2828
#include "ament_index_cpp/get_package_share_directory.hpp"
29+
#if RCLCPP_VERSION_GTE(30, 1, 4)
2930
#include "ament_index_cpp/get_package_share_path.hpp"
31+
#endif
3032

3133
#ifdef __APPLE__
3234
#include <pthread.h>

0 commit comments

Comments
 (0)