From b4a20b24a2b04c62a3ad8fdbec1d3e068bf4f996 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 9 Sep 2022 05:06:35 +0800 Subject: [PATCH] fix warning: "_MSC_VER" is not defined, evaluates to 0 [-Wundef] Signed-off-by: Xiang Xiao Change-Id: I8e6cae855d7298e7b471ebf6456228f08fcb8918 --- backend/rss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/rss.c b/backend/rss.c index 76ca4009..ca7a7431 100644 --- a/backend/rss.c +++ b/backend/rss.c @@ -745,7 +745,7 @@ INTERNAL int dbar_ltd_cc(struct zint_symbol *symbol, unsigned char source[], int checksum = 0; /* Calculate the checksum */ for (i = 0; i < 14; i++) { -#if _MSC_VER == 1900 && defined(_WIN64) /* MSVC 2015 x64 */ +#if defined(_MSC_VER) && _MSC_VER == 1900 && defined(_WIN64) /* MSVC 2015 x64 */ checksum %= 89; /* Hack to get around optimizer bug */ #endif checksum += checksum_weight_ltd[i] * left_widths[i];