Skip to content

Commit

Permalink
Added defines to disable OpenCL deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CNugteren committed Dec 23, 2017
1 parent 04bf543 commit 2b020d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clpp11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
#include <cstdio> // fprintf, stderr

// OpenCL
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS // to disable deprecation warnings
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS // to disable deprecation warnings
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS // to disable deprecation warnings
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/opencl.h>
#else
Expand Down

0 comments on commit 2b020d5

Please sign in to comment.