diff --git a/modules/highgui/src/window_w32.cpp b/modules/highgui/src/window_w32.cpp index a274fdbbc..959292f27 100644 --- a/modules/highgui/src/window_w32.cpp +++ b/modules/highgui/src/window_w32.cpp @@ -61,7 +61,10 @@ #ifdef __GNUC__ # pragma GCC diagnostic ignored "-Wmissing-declarations" #endif + +#if defined(_MSC_VER) && (_MSC_VER < 1700) #include +#endif #include #include diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index 3c28555b7..8a0aa0975 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -1,3 +1,8 @@ +#if defined(_MSC_VER) && (_MSC_VER >= 1800) +// eliminating duplicated round() declaration +#define HAVE_ROUND +#endif + #include #if !PYTHON_USE_NUMPY