From 9961658eabc9bdd44379b1ac12427b0544797a79 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Sat, 19 May 2012 10:44:43 +0000 Subject: [PATCH] Fixing compile on some MinGW platforms --- modules/highgui/src/window_w32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/highgui/src/window_w32.cpp b/modules/highgui/src/window_w32.cpp index bdee452c52..b2470be474 100644 --- a/modules/highgui/src/window_w32.cpp +++ b/modules/highgui/src/window_w32.cpp @@ -48,6 +48,10 @@ #endif #define COMPILE_MULTIMON_STUBS // Required for multi-monitor support +#ifndef _MULTIMON_USE_SECURE_CRT +# define _MULTIMON_USE_SECURE_CRT 0 // some MinGW platforms have no strncpy_s +#endif + #if defined SM_CMONITORS && !defined MONITOR_DEFAULTTONEAREST # define MONITOR_DEFAULTTONULL 0x00000000 # define MONITOR_DEFAULTTOPRIMARY 0x00000001