From 1264be878547a2f7194f546f9e07589d1175a431 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 31 Dec 2014 10:15:48 +0100 Subject: [PATCH] Check if _WIN32_IE is defined with proper value in window_w32.cpp TBBUTTONINFO struct and BTNS_xxx symbols used in the code need _WIN32_IE to be defined with at least 0x0500 value (_WIN32_IE_IE50) in order to be included from commctrl.h. --- modules/highgui/src/window_w32.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/highgui/src/window_w32.cpp b/modules/highgui/src/window_w32.cpp index 66e6846..0878bff 100644 --- a/modules/highgui/src/window_w32.cpp +++ b/modules/highgui/src/window_w32.cpp @@ -48,6 +48,11 @@ # pragma GCC diagnostic ignored "-Wmissing-declarations" #endif +#if (_WIN32_IE < 0x0500) +#pragma message("WARNING: Win32 UI needs to be compiled with _WIN32_IE >= 0x0500 (_WIN32_IE_IE50)") +#define _WIN32_IE 0x0500 +#endif + #include #include #include -- 2.7.4