diff --git a/modules/v4d/src/detail/framebuffercontext.hpp b/modules/v4d/src/detail/framebuffercontext.hpp index 2f3df1ce8..d6418f99a 100644 --- a/modules/v4d/src/detail/framebuffercontext.hpp +++ b/modules/v4d/src/detail/framebuffercontext.hpp @@ -10,8 +10,11 @@ # ifndef CL_TARGET_OPENCL_VERSION # define CL_TARGET_OPENCL_VERSION 120 # endif -# include -# include +# ifdef __APPLE__ +# include +# else +# include +# endif #else # define OPENCV_V4D_ES_VERSION 3 #endif