Browse Source

Bugfix: Fix building without OpenCL support

Luke Dashjr 13 years ago
parent
commit
f7125dc965
1 changed files with 2 additions and 0 deletions
  1. 2 0
      driver-opencl.c

+ 2 - 0
driver-opencl.c

@@ -44,6 +44,7 @@
 /* TODO: cleanup externals ********************/
 
 
+#ifdef HAVE_OPENCL
 /* Platform API */
 CL_API_ENTRY cl_int CL_API_CALL
 (*clGetPlatformIDs)(cl_uint          /* num_entries */,
@@ -248,6 +249,7 @@ load_opencl_symbols() {
 	
 	return true;
 }
+#endif
 
 
 #ifdef HAVE_CURSES