1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

ocl: force to use Khronos OpenCL headers

This commit is contained in:
Alexander Alekhin
2013-10-11 19:30:47 +04:00
parent 9d380ecc08
commit 6344da9ac3
11 changed files with 45 additions and 99 deletions
+15
View File
@@ -0,0 +1,15 @@
#if defined __APPLE__
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
int main(int argc, char** argv)
{
#ifdef CL_VERSION_1_2
#error OpenCL is valid
#else
#error OpenCL check failed
#endif
return 0;
}