From 42471c082f0207a5ef0457c7bb725fa6a3458fd8 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Fri, 2 Nov 2012 12:03:25 +0400 Subject: [PATCH] possibly fixed compile errors in GPU module on Windows --- modules/gpu/src/precomp.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/gpu/src/precomp.hpp b/modules/gpu/src/precomp.hpp index f8782b3..c37332a 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 -- 2.7.4