Skip to content

Commit

Permalink
Resolve compatibility
Browse files Browse the repository at this point in the history
Remain compatible to fastCdr version 1.1.x so that
build with Ros is not broken

Issue:
[facontidavide#919]
Co-authored-by: manuelValch
  • Loading branch information
manuelValch authored and manuelValch committed Feb 14, 2024
1 parent 47b9785 commit e7139dc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#include "rosx_introspection/deserializer.hpp"
#include <fastcdr/Cdr.h>

/* 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
{

Expand Down

0 comments on commit e7139dc

Please sign in to comment.