From: Roman Donchenko Date: Wed, 4 Dec 2013 08:39:20 +0000 (+0400) Subject: Fixed a -Wundef warning in cl_platform.h. X-Git-Tag: accepted/tizen/ivi/20140515.103456~1^2~211^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11c7053b0f81ad31474b236205ca9fab177f75fc;p=profile%2Fivi%2Fopencv.git Fixed a -Wundef warning in cl_platform.h. _MSC_VER -> defined _MSC_VER. Fixes building with MinGW. Similar to fbc91c5ee. --- diff --git a/3rdparty/include/opencl/1.2/CL/cl_platform.h b/3rdparty/include/opencl/1.2/CL/cl_platform.h index 46b3d9d..e94949a 100644 --- a/3rdparty/include/opencl/1.2/CL/cl_platform.h +++ b/3rdparty/include/opencl/1.2/CL/cl_platform.h @@ -454,7 +454,7 @@ typedef unsigned int cl_GLenum; /* Define alignment keys */ #if defined( __GNUC__ ) #define CL_ALIGNED(_x) __attribute__ ((aligned(_x))) -#elif defined( _WIN32) && (_MSC_VER) +#elif defined( _WIN32) && defined(_MSC_VER) /* Alignment keys neutered on windows because MSVC can't swallow function arguments with alignment requirements */ /* http://msdn.microsoft.com/en-us/library/373ak2y1%28VS.71%29.aspx */ /* #include */