aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorhighgod0401 <highgod0401@gmail.com>2013-04-28 11:03:24 +0800
committerMichael Niedermayer <michaelni@gmx.at>2013-04-28 23:42:58 +0200
commitdf9117921ac3fea7552a20c66b1cfd5967a9f345 (patch)
treeb1fd1b98d231a0e9b8d3fe5b2484731b174eafa2 /libavutil
parentcb23b06e5e263663b20d6c1231ee1d86e6c54617 (diff)
downloadffmpeg-df9117921ac3fea7552a20c66b1cfd5967a9f345.tar.gz
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')
-rw-r--r--libavutil/opencl.h6
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__