define CL_NO_EXTENSION_PROTOTYPES (#1325)

* define CL_NO_PROTOTYPES

When we switch to generated headers this will suppress declaration
of extension functions, so we can continue to declare function
pointers with the same name.

* switch to CL_NO_EXTENSION_PROTOTYPES

CL_NO_PROTOTYPES will omit declarations of core OpenCL APIs also.
This commit is contained in:
Ben Ashbaugh
2023-04-11 09:30:01 -07:00
committed by GitHub
parent 9772516c3f
commit 5b87f53fe8

View File

@@ -17,6 +17,7 @@ add_definitions(-DCL_USE_DEPRECATED_OPENCL_2_0_APIS=1)
add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_2_APIS=1)
add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS=1)
add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1)
add_definitions(-DCL_NO_EXTENSION_PROTOTYPES)
option(USE_CL_EXPERIMENTAL "Use Experimental definitions" OFF)
if(USE_CL_EXPERIMENTAL)