aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/opencl.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-01-12 13:48:52 -0300
committerJames Almer <jamrial@gmail.com>2015-02-12 15:43:47 -0300
commit9bc62da980336ad01495efbcae248aacdd0b831e (patch)
treea574f9c18e422e1dcc5082b629c393904556e718 /libavutil/opencl.h
parent2a6d16ba5f84fc13a1ad6c718ec08ee42639dc79 (diff)
downloadffmpeg-9bc62da980336ad01495efbcae248aacdd0b831e.tar.gz
avutil/opencl: don't include config.h
It's not an installed header. Tested-by: Thilo Borgmann <thilo.borgmann@mail.de> Tested-by: Wei Gao <highgod0401@gmail.com> Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 3aaff803489af21011b8cf03847e17b29643c922)
Diffstat (limited to 'libavutil/opencl.h')
-rw-r--r--libavutil/opencl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavutil/opencl.h b/libavutil/opencl.h
index 4655cba552..0b7b8d4764 100644
--- a/libavutil/opencl.h
+++ b/libavutil/opencl.h
@@ -32,11 +32,10 @@
#ifndef LIBAVUTIL_OPENCL_H
#define LIBAVUTIL_OPENCL_H
-#include "config.h"
-#if HAVE_CL_CL_H
-#include <CL/cl.h>
-#else
+#ifdef __APPLE__
#include <OpenCL/cl.h>
+#else
+#include <CL/cl.h>
#endif
#include <stdint.h>
#include "dict.h"