From 199c2d2fd090a273ef963d9b13d28cd552657081 Mon Sep 17 00:00:00 2001 From: Long Nguyen Date: Fri, 15 Jul 2022 18:00:53 +0700 Subject: [PATCH] Define `STRSAFE_NO_DEPRECATE` for both clang and gcc mingw-w64 --- modules/videoio/src/cap_dshow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/videoio/src/cap_dshow.cpp b/modules/videoio/src/cap_dshow.cpp index e4de20bcac..db42601dab 100644 --- a/modules/videoio/src/cap_dshow.cpp +++ b/modules/videoio/src/cap_dshow.cpp @@ -90,8 +90,11 @@ Thanks to: #if defined(__clang__) // clang or MSVC clang #pragma clang diagnostic ignored "-Wnon-virtual-dtor" -#elif defined(__GNUC__) // MinGW +#elif defined(__GNUC__) // gcc #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +#endif + +#ifdef __MINGW32__ #define STRSAFE_NO_DEPRECATE #endif