diff options
author | highgod0401 <highgod0401@gmail.com> | 2013-04-28 07:03:24 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-29 01:42:58 +0400 |
commit | df9117921ac3fea7552a20c66b1cfd5967a9f345 (patch) | |
tree | b1fd1b98d231a0e9b8d3fe5b2484731b174eafa2 /libavutil/opencl.h | |
parent | cb23b06e5e263663b20d6c1231ee1d86e6c54617 (diff) |
lavu/opencl: add check version and platform
Reviewed-by: Hanspeter Niederstrasser <niederstrasser@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opencl.h')
-rw-r--r-- | libavutil/opencl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavutil/opencl.h b/libavutil/opencl.h index acafe36ad6..96a3086b74 100644 --- a/libavutil/opencl.h +++ b/libavutil/opencl.h @@ -31,8 +31,12 @@ #ifndef LIBAVUTIL_OPENCL_H #define LIBAVUTIL_OPENCL_H -#include <CL/cl.h> #include "config.h" +#if HAVE_CL_CL_H +#include <CL/cl.h> +#else +#include <OpenCL/cl.h> +#endif #include "dict.h" #define AV_OPENCL_KERNEL( ... )# __VA_ARGS__ |