mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-21 22:08:20 +08:00
mdbx-windows: minor fix for legacy Windows SDK.
This commit is contained in:
parent
a5b077b2f0
commit
8008e23cfa
@ -151,7 +151,7 @@ __cold void mdbx_panic(const char *fmt, ...) {
|
|||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
if (IsDebuggerPresent()) {
|
if (IsDebuggerPresent()) {
|
||||||
OutputDebugString("\r\n" FIXME "\r\n");
|
OutputDebugStringA("\r\n" FIXME "\r\n");
|
||||||
FatalExit(ERROR_UNHANDLED_ERROR);
|
FatalExit(ERROR_UNHANDLED_ERROR);
|
||||||
}
|
}
|
||||||
#elif _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L || \
|
#elif _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L || \
|
||||||
@ -772,7 +772,7 @@ int mdbx_mmap(int flags, mdbx_mmap_t *map, size_t must, size_t limit) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS rc;
|
NTSTATUS rc;
|
||||||
#ifdef _WIN64
|
#if defined(_WIN64) && defined(WOF_CURRENT_VERSION)
|
||||||
struct {
|
struct {
|
||||||
WOF_EXTERNAL_INFO wof_info;
|
WOF_EXTERNAL_INFO wof_info;
|
||||||
union {
|
union {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user