mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
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:
parent
62f788ce03
commit
b4a20b24a2
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user