From 75e5b279c5f8aab03c596825ae7a150f398ccb6e Mon Sep 17 00:00:00 2001 From: Andreas Noever Date: Sun, 15 Apr 2018 10:23:34 +0200 Subject: [PATCH] Fix windows build with WINVER >= Vista. In 32e78aeb2 the definition of DWM_BLURBEHIND in win32_platform.h was moved behind a WINVER < 0x0600 preprocessor check (< Vista). This broke the build for WINVER >= 0x0600 since DWM_BLURBEHIND is not defined. Starting with Vista DWM_BLURBEHIND is available in Dwmapi.h (see [1]). So we can just include the header directly on Vista and above. [1]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa969500(v=vs.85).aspx --- src/win32_platform.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32_platform.h b/src/win32_platform.h index 607ac13ae..c7d5ed7a6 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -120,6 +120,8 @@ typedef struct HRGN hRgnBlur; BOOL fTransitionOnMaximized; } DWM_BLURBEHIND; +#else +#include #endif /*Windows Vista*/ #ifndef DPI_ENUMS_DECLARED