diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cce10bacd..80cf798ee6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -336,6 +336,7 @@ include(cmake/OpenCVCompilerOptions.cmake REQUIRED) # ---------------------------------------------------------------------------- if(MSVC) include(cmake/OpenCVCRTLinkage.cmake REQUIRED) + add_definitions(-D_VARIADIC_MAX=10) endif(MSVC) diff --git a/modules/calib3d/test/test_affine3d_estimator.cpp b/modules/calib3d/test/test_affine3d_estimator.cpp index 95742a919a..9eed8e97d7 100644 --- a/modules/calib3d/test/test_affine3d_estimator.cpp +++ b/modules/calib3d/test/test_affine3d_estimator.cpp @@ -48,6 +48,7 @@ using namespace std; #include #include #include +#include #include #include #include diff --git a/modules/calib3d/test/test_chesscorners.cpp b/modules/calib3d/test/test_chesscorners.cpp index f6d513d299..d69212121d 100644 --- a/modules/calib3d/test/test_chesscorners.cpp +++ b/modules/calib3d/test/test_chesscorners.cpp @@ -42,6 +42,7 @@ #include "test_precomp.hpp" #include "test_chessboardgenerator.hpp" +#include #include #include diff --git a/modules/gpu/test/precomp.hpp b/modules/gpu/test/precomp.hpp index afc3be8559..5c1c4c1f49 100644 --- a/modules/gpu/test/precomp.hpp +++ b/modules/gpu/test/precomp.hpp @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include