fix warning: "_MSC_VER" is not defined, evaluates to 0 [-Wundef]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8e6cae855d7298e7b471ebf6456228f08fcb8918
This commit is contained in:
Xiang Xiao 2022-09-09 05:06:35 +08:00
parent 62f788ce03
commit b4a20b24a2

View File

@ -745,7 +745,7 @@ INTERNAL int dbar_ltd_cc(struct zint_symbol *symbol, unsigned char source[], int
checksum = 0; checksum = 0;
/* Calculate the checksum */ /* Calculate the checksum */
for (i = 0; i < 14; i++) { 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 */ checksum %= 89; /* Hack to get around optimizer bug */
#endif #endif
checksum += checksum_weight_ltd[i] * left_widths[i]; checksum += checksum_weight_ltd[i] * left_widths[i];