mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-13 06:34:32 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue