From 8c9c2b3a032b6e50f9f0513c7d745d2f0d6cf4b3 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Thu, 8 Nov 2012 02:11:27 +0400 Subject: [PATCH] Fix build on Windows with OpenGl enabled There was missing windows.h include in OpenGL interop code. --- modules/core/src/opengl_interop.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/core/src/opengl_interop.cpp b/modules/core/src/opengl_interop.cpp index bf767148c..3cbec2c01 100644 --- a/modules/core/src/opengl_interop.cpp +++ b/modules/core/src/opengl_interop.cpp @@ -45,6 +45,14 @@ #include "opencv2/core/opengl_interop.hpp" #include "opencv2/core/gpumat.hpp" +#if defined WIN32 || defined _WIN32 || defined WINCE +#include +#undef small +#undef min +#undef max +#undef abs +#endif + #ifdef HAVE_OPENGL #ifdef __APPLE__ #include