Fixing compile on some MinGW platforms
authorAndrey Kamaev <no@email>
Sat, 19 May 2012 10:44:43 +0000 (10:44 +0000)
committerAndrey Kamaev <no@email>
Sat, 19 May 2012 10:44:43 +0000 (10:44 +0000)
modules/highgui/src/window_w32.cpp

index bdee452..b2470be 100644 (file)
 #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