Skip to content

Commit

Permalink
xmi_solid_angle_cl: fix OpenCL preprocessor warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Feb 25, 2020
1 parent 90c51c1 commit 4f879f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xmi_solid_angle_cl.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Silence warnings about using deprecated OpenCL 1.2 functions.
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS

// Silence warnings on Ubuntu
#define CL_TARGET_OPENCL_VERSION 110

#ifdef HAVE_OPENCL_CL_H
#include <OpenCL/cl.h>
#elif defined(HAVE_CL_CL_H)
Expand Down

0 comments on commit 4f879f7

Please sign in to comment.