From fcc244ea6d6d1f83d29e0bfdee8ac13f98933aaf Mon Sep 17 00:00:00 2001 From: Andreas Noever Date: Sun, 15 Apr 2018 10:23:34 +0200 Subject: [PATCH] Win32: 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. So we can just include the header directly on Vista and above. Closes #1253. --- src/win32_platform.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win32_platform.h b/src/win32_platform.h index 607ac13a..c7d5ed7a 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