From 98dd9573c71a6e931369b98a5cb0e71af0f072ca Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 20 Feb 2019 13:04:04 +0000 Subject: [PATCH] Fix ifdef --- src/pal/pal_windows.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pal/pal_windows.h b/src/pal/pal_windows.h index ca81635..6f65ad2 100644 --- a/src/pal/pal_windows.h +++ b/src/pal/pal_windows.h @@ -73,8 +73,8 @@ namespace snmalloc if (committed) flags |= MEM_COMMIT; -# if (NTDDI_VERSION >= NTDDI_WIN10_RS5) && (WINVER >= _WIN32_WINNT_WIN10) && \ - !defined(USE_SYSTEMATIC_TESTING) +# if defined(NTDDI_WIN10_RS5) && (NTDDI_VERSION >= NTDDI_WIN10_RS5) && \ + (WINVER >= _WIN32_WINNT_WIN10) && !defined(USE_SYSTEMATIC_TESTING) // If we're on Windows 10 or newer, we can use the VirtualAlloc2 // function. The FromApp variant is useable by UWP applications and // cannot allocate executable memory.