mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 15:29:31 +03:00
Merge pull request #1006 from sergio-nsk/sergio-nsk/uwp/1
prim: fix dev3 UWP build (#1005)
This commit is contained in:
commit
152804bb9f
1 changed files with 5 additions and 3 deletions
|
@ -127,9 +127,11 @@ void _mi_prim_mem_init( mi_os_mem_config_t* config )
|
|||
config->has_partial_free = false;
|
||||
config->has_virtual_reserve = true;
|
||||
// windows version
|
||||
const DWORD win_version = GetVersion();
|
||||
win_major_version = (DWORD)(LOBYTE(LOWORD(win_version)));
|
||||
win_minor_version = (DWORD)(HIBYTE(LOWORD(win_version)));
|
||||
OSVERSIONINFOW version{sizeof(version)};
|
||||
if (GetVersionExW(&version)) {
|
||||
win_major_version = version.dwMajorVersion;
|
||||
win_minor_version = version.dwMinorVersion;
|
||||
}
|
||||
// get the page size
|
||||
SYSTEM_INFO si;
|
||||
GetSystemInfo(&si);
|
||||
|
|
Loading…
Add table
Reference in a new issue