Add #if version >= 0.8.2 to fix ros2 dashing builds

Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
This commit is contained in:
Dennis Potman 2020-02-11 09:51:29 +01:00 committed by eboasson
parent d70fad6c46
commit 18317eff6c

View file

@ -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<std::string,