Skip to content

Commit 2601f88

Browse files
authored
Check fastcdr major version when building FastDDSGEnCodeTester (#964)
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
1 parent 77c2c85 commit 2601f88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

code/FastDDSGenCodeTester.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
#include <string>
33
#include <bitset>
44

5+
#include <fastcdr/config.h>
6+
7+
#if FASTCDR_VERSION_MAJOR > 1
8+
59
#include <fastcdr/xcdr/optional.hpp>
610

711
using octet = unsigned char;
@@ -178,6 +182,8 @@ enum MyBitMask : uint8_t
178182
};
179183
//!
180184

185+
#endif // FASTCDR_VERSION_MAJOR > 1
186+
181187
/*
182188
// INCLUDE_MORE_IDL_FILES
183189
#include "OtherFile.idl"

0 commit comments

Comments
 (0)