Skip to content

Commit 42288ed

Browse files
Fix Data 100kb CDR version (#5923)
Signed-off-by: Eugenio Collado <[email protected]>
1 parent 59aa8bb commit 42288ed

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/blackbox/types/Data100kb.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ char dummy;
2828

2929
#include "Data100kb.h"
3030

31+
#if FASTCDR_VERSION_MAJOR > 1
32+
3133
#include <fastcdr/Cdr.h>
3234

3335

@@ -131,3 +133,4 @@ std::vector<uint8_t>& Data100kb::data()
131133
// Include auxiliary functions like for serializing/deserializing.
132134
#include "Data100kbCdrAux.ipp"
133135

136+
#endif // FASTCDR_VERSION_MAJOR > 1

test/blackbox/types/Data100kb.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
* This file was generated by the tool fastddsgen.
2020
*/
2121

22+
#include <fastcdr/config.h>
23+
#include "Data100kbv1.h"
24+
25+
#if FASTCDR_VERSION_MAJOR > 1
26+
2227
#ifndef _FAST_DDS_GENERATED_DATA100KB_H_
2328
#define _FAST_DDS_GENERATED_DATA100KB_H_
2429

@@ -168,3 +173,4 @@ class Data100kb
168173

169174

170175

176+
#endif // FASTCDR_VERSION_MAJOR > 1

0 commit comments

Comments
 (0)