From 18317eff6ce4e3e77fca012289dd61508f5a1d1b Mon Sep 17 00:00:00 2001 From: Dennis Potman Date: Tue, 11 Feb 2020 09:51:29 +0100 Subject: [PATCH] Add #if version >= 0.8.2 to fix ros2 dashing builds Signed-off-by: Dennis Potman --- rmw_cyclonedds_cpp/src/rmw_node.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rmw_cyclonedds_cpp/src/rmw_node.cpp b/rmw_cyclonedds_cpp/src/rmw_node.cpp index cc6ffdd..7313941 100644 --- a/rmw_cyclonedds_cpp/src/rmw_node.cpp +++ b/rmw_cyclonedds_cpp/src/rmw_node.cpp @@ -2915,6 +2915,7 @@ static rmw_ret_t rmw_collect_data_for_endpoint( } } +#if RMW_VERSION_GTE(0, 8, 2) struct endpoint_info_t { std::string topic_type; @@ -3140,6 +3141,7 @@ get_endpoint_info_by_topic( dds_delete(ppant_rd); return RMW_RET_OK; } +#endif // RMW_VERSION_GTE(0, 8, 2) static rmw_ret_t make_names_and_types( rmw_names_and_types_t * tptyp, const std::map