Skip to content

Commit 454eb7b

Browse files
committed
deltacast: warn if compiling with VideoMaster 6.20
It can be alos 6.19, for which this won't compile, -DVHD_IS_6_20 can be used to silence the warn for 6.20.
1 parent 2db3abf commit 454eb7b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/deltacast_common.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,16 @@
8383
#include <VideoMasterHD_Ip_Board.h>
8484
#endif
8585
#if defined VHD_IP_FILTER_UDP_PORT_DEST && !defined VHD_IS_6_19
86-
#define VHD_MIN_6_20 1
86+
#ifdef VHD_CORE_BP_BYPASS_RELAY_0
87+
// enum membber until 6.20, macro since 6.21
88+
#define VHD_MIN_6_21 1
89+
#endif
90+
#if !defined VHD_MIN_6_21 || !defined VHD_IS_6_20 // 6.19 or 6.20
91+
#warning cannot determine if VideoMaster is 6.19 or 6.20 - \
92+
assuming 6.20. Pass -DVHD_IS_6_19 (or 6_20) to enforce \
93+
specific version.
94+
#endif
95+
#define VHD_MIN_6_20 1
8796
#endif
8897

8998
// compat

0 commit comments

Comments
 (0)