mdbx-windows: minor workaround for MSVC "unresolved external symbol __except1 ..."

Workaround for MSVC error LNK2019: unresolved external symbol __except1 referenced in function __ftol3_except.
This commit is contained in:
Leonid Yuriev 2020-02-19 16:31:25 +03:00
parent 9aa816dc73
commit 4fed2d9fc0

View File

@ -17891,7 +17891,12 @@ uint64_t mdbx_key_from_jsonInteger(const int64_t json_integer) {
const uint64_t key = biased_zero + const uint64_t key = biased_zero +
(exponent << IEEE754_DOUBLE_MANTISSA_SIZE) + (exponent << IEEE754_DOUBLE_MANTISSA_SIZE) +
(mantissa - IEEE754_DOUBLE_IMPLICIT_LEAD); (mantissa - IEEE754_DOUBLE_IMPLICIT_LEAD);
#if !defined(_MSC_VER) || \
defined( \
_DEBUG) /* Workaround for MSVC error LNK2019: unresolved external \
symbol __except1 referenced in function __ftol3_except */
assert(key == mdbx_key_from_double((double)json_integer)); assert(key == mdbx_key_from_double((double)json_integer));
#endif /* Workaround for MSVC */
return key; return key;
} }
@ -17913,7 +17918,12 @@ uint64_t mdbx_key_from_jsonInteger(const int64_t json_integer) {
const uint64_t key = biased_zero - const uint64_t key = biased_zero -
(exponent << IEEE754_DOUBLE_MANTISSA_SIZE) - (exponent << IEEE754_DOUBLE_MANTISSA_SIZE) -
(mantissa - IEEE754_DOUBLE_IMPLICIT_LEAD); (mantissa - IEEE754_DOUBLE_IMPLICIT_LEAD);
#if !defined(_MSC_VER) || \
defined( \
_DEBUG) /* Workaround for MSVC error LNK2019: unresolved external \
symbol __except1 referenced in function __ftol3_except */
assert(key == mdbx_key_from_double((double)json_integer)); assert(key == mdbx_key_from_double((double)json_integer));
#endif /* Workaround for MSVC */
return key; return key;
} }