From f2c14b147182654c35cb711f78856385bd831e60 Mon Sep 17 00:00:00 2001 From: Davide Faconti Date: Thu, 9 May 2024 14:35:04 +0200 Subject: [PATCH] Update ros2_parser.cpp --- src/ros_parsers/ros2_parser.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ros_parsers/ros2_parser.cpp b/src/ros_parsers/ros2_parser.cpp index 9236163c..043b6a96 100644 --- a/src/ros_parsers/ros2_parser.cpp +++ b/src/ros_parsers/ros2_parser.cpp @@ -8,8 +8,14 @@ #include #include -#include +#if __has_include() +# include +#endif + +#if __has_include() +# include +#endif bool TypeHasHeader(const rosidl_message_type_support_t* type_support) { @@ -135,4 +141,4 @@ std::shared_ptr CreateParserROS2(const PJ::ParserFactories& f PJ::PlotDataMapRef& data) { return factories.at("ros2msg")->createParser(topic_name, type_name, CreateSchema(type_name), data); -} \ No newline at end of file +}