mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
fix the warning on Linux when OpenCL 1.2 not supported
This commit is contained in:
parent
2e3f4fdada
commit
1a488c0542
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user