diff --git a/modules/gpu/src/precomp.hpp b/modules/gpu/src/precomp.hpp index f8782b379a..c37332ae45 100644 --- a/modules/gpu/src/precomp.hpp +++ b/modules/gpu/src/precomp.hpp @@ -73,6 +73,14 @@ #include "opencv2/core/internal.hpp" #include "opencv2/video/video.hpp" +#if defined WIN32 || defined WINCE + #include + #undef small + #undef min + #undef max + #undef abs +#endif + #define OPENCV_GPU_UNUSED(x) (void)x #ifdef HAVE_CUDA