From 54e57d7deeb5577e6aceaf75b79f094118b85c65 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 25 Oct 2024 10:04:00 +0200 Subject: [PATCH] DELTACAST: allow compilation with v6.19 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. --- src/deltacast_common.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/deltacast_common.hpp b/src/deltacast_common.hpp index d46553bb6..f64d795c8 100644 --- a/src/deltacast_common.hpp +++ b/src/deltacast_common.hpp @@ -84,8 +84,8 @@ #else #include #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 @@ -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