From e7139dc403136ea761a3f0e69b8126901cdb74d2 Mon Sep 17 00:00:00 2001 From: manuelValch Date: Tue, 6 Feb 2024 21:36:30 +0100 Subject: [PATCH] Resolve compatibility Remain compatible to fastCdr version 1.1.x so that build with Ros is not broken Issue: [facontidavide#919] Co-authored-by: manuelValch --- .../ParserROS/rosx_introspection/src/deserializer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plotjuggler_plugins/ParserROS/rosx_introspection/src/deserializer.cpp b/plotjuggler_plugins/ParserROS/rosx_introspection/src/deserializer.cpp index 48d06ec93..662580f1b 100644 --- a/plotjuggler_plugins/ParserROS/rosx_introspection/src/deserializer.cpp +++ b/plotjuggler_plugins/ParserROS/rosx_introspection/src/deserializer.cpp @@ -1,6 +1,12 @@ #include "rosx_introspection/deserializer.hpp" #include +/* make sure to remain compatible with previous version of fastCdr */ +#if ((FASTCDR_VERSION_MAJOR < 2)) + #define get_buffer_pointer() getBufferPointer() + #define get_current_position() getCurrentPosition() + #define CdrVersion Cdr +#endif namespace RosMsgParser {