Skip to content

Commit

Permalink
DELTACAST: allow compilation with v6.19
Browse files Browse the repository at this point in the history
v6.19 and v6.20 is undistinguishable by preprocessor but the later
changes the API. So added a preprocessor directive to allow compilation
with v6.19 passed by user. It could have been checked by autoconf but
it is perhaps not worth the effort.
  • Loading branch information
MartinPulec committed Oct 25, 2024
1 parent b68569f commit 54e57d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deltacast_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
#else
#include <VideoMasterHD_Ip_Board.h>
#endif
#if defined VHD_IP_FILTER_UDP_PORT_DEST
#define VHD_MIN_6_19 1
#if defined VHD_IP_FILTER_UDP_PORT_DEST && !defined VHD_IS_6_19
#define VHD_MIN_6_20 1
#endif

// compat
Expand All @@ -96,7 +96,7 @@
// Following items have been actually deprecated in 6.20. But 6.20 doesn't
// bring any new define and thus it is undistinguishable from 6.19. As a
// consequence, it won't compile with 6.19.
#if defined VHD_MIN_6_19
#if defined VHD_MIN_6_20
#define VHD_BOARDTYPE_SD VHD_BOARDTYPE_SD_DEPRECATED
#define VHD_BOARDTYPE_SDKEY VHD_BOARDTYPE_SDKEY_DEPRECATED
#define VHD_CHNTYPE_SDSDI VHD_CHNTYPE_SDSDI_DEPRECATED
Expand Down

0 comments on commit 54e57d7

Please sign in to comment.