Merge pull request #1646 from alalek:ocl_fix_msvc11
This commit is contained in:
commit
a54d36bde8
@ -4,12 +4,21 @@
|
|||||||
#include <CL/cl.h>
|
#include <CL/cl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
#ifndef _MSC_VER
|
||||||
{
|
|
||||||
#ifdef CL_VERSION_1_2
|
#ifdef CL_VERSION_1_2
|
||||||
#error OpenCL is valid
|
#error OpenCL is valid
|
||||||
#else
|
#else
|
||||||
#error OpenCL check failed
|
#error OpenCL check failed
|
||||||
#endif
|
#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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user