fix the warning on Linux when OpenCL 1.2 not supported
This commit is contained in:
@@ -46,6 +46,9 @@
|
|||||||
#include "mcwutil.hpp"
|
#include "mcwutil.hpp"
|
||||||
|
|
||||||
#if defined (HAVE_OPENCL)
|
#if defined (HAVE_OPENCL)
|
||||||
|
#ifndef CL_VERSION_1_2
|
||||||
|
#define CL_VERSION_1_2 0
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user