mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
make C compatible
This commit is contained in:
parent
1500d73e9a
commit
c7f7c23dc1
1 changed files with 3 additions and 3 deletions
|
@ -127,10 +127,10 @@ void _mi_prim_mem_init( mi_os_mem_config_t* config )
|
|||
config->has_partial_free = false;
|
||||
config->has_virtual_reserve = true;
|
||||
// windows version
|
||||
OSVERSIONINFOW version{sizeof(version)};
|
||||
OSVERSIONINFOW version; _mi_memzero_var(version);
|
||||
if (GetVersionExW(&version)) {
|
||||
win_major_version = version.dwMajorVersion;
|
||||
win_minor_version = version.dwMinorVersion;
|
||||
win_major_version = version.dwMajorVersion;
|
||||
win_minor_version = version.dwMinorVersion;
|
||||
}
|
||||
// get the page size
|
||||
SYSTEM_INFO si;
|
||||
|
|
Loading…
Add table
Reference in a new issue