summaryrefslogtreecommitdiffstats
path: root/libhb/openclwrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/openclwrapper.h')
-rw-r--r--libhb/openclwrapper.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libhb/openclwrapper.h b/libhb/openclwrapper.h
index c7606afc0..0ccabd564 100644
--- a/libhb/openclwrapper.h
+++ b/libhb/openclwrapper.h
@@ -11,10 +11,11 @@
*/
-#ifndef __OPENCL_WRAPPER_H
-#define __OPENCL_WRAPPER_H
-#ifdef USE_OPENCL
+#ifndef HB_OPENCL_WRAPPER_H
+#define HB_OPENCL_WRAPPER_H
+
#include "common.h"
+#include "extras/cl.h"
//support AMD opencl
#define CL_QUEUE_THREAD_HANDLE_AMD 0x403E
@@ -85,5 +86,5 @@ int hb_cl_free_mapped_buffer(cl_mem mem, unsigned char *addr);
int hb_use_buffers();
int hb_confirm_gpu_type();
-#endif
-#endif
+
+#endif // HB_OPENCL_WRAPPER_H