MapViewOfFileExNuma is only present when _WIN32_WINNT >= 0x0600 (Windows Vista
or later). The code is passing NUMA_NO_PREFERRED_MODE, and that
is documented as:
No NUMA node is preferred. This is the same as calling the MapViewOfFileEx
function.
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-mapviewoffileexnuma
So, MapViewOfFileEx will behave identically, while still allowing Windows XP
support.
libgfortran/ChangeLog:
* caf/shmem/shared_memory.c (shared_memory_init): Use
MapViewOfFileEx instead of MapViewOfFileExNuma.
}
#elif defined(WIN32)
mem->glbl.base
- = (LPTSTR) MapViewOfFileExNuma (mem->shm_fd, FILE_MAP_ALL_ACCESS, 0, 0,
- size, base_ptr, NUMA_NO_PREFERRED_NODE);
+ = (LPTSTR) MapViewOfFileEx (mem->shm_fd, FILE_MAP_ALL_ACCESS, 0, 0,
+ size, base_ptr);
if (mem->glbl.base == NULL)
{
perror ("MapViewOfFile failed");