Commit a54d36bd authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #1646 from alalek:ocl_fix_msvc11

parents bfd8acbb cfc3b9ab
......@@ -4,12 +4,21 @@
#include <CL/cl.h>
#endif
int main(int argc, char** argv)
{
#ifndef _MSC_VER
#ifdef CL_VERSION_1_2
#error OpenCL is valid
#else
#error OpenCL check failed
#endif
#else
#ifdef CL_VERSION_1_2
#pragma message ("OpenCL is valid")
#else
#pragma message ("OpenCL check failed")
#endif
#endif
int main(int /*argc*/, char** /*argv*/)
{
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment