mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:24:12 +08:00
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:
parent
9aa816dc73
commit
4fed2d9fc0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user