We should only avoid adding __OPENCL_C_VERSION__, all other predefined macros about the language mode are still valid.
This change also fixes the language version check in the headers.
Differential D65941
[OpenCL] Fix lang mode predefined macros for C++ mode Anastasia on Aug 8 2019, 4:51 AM. Authored by
Details
We should only avoid adding __OPENCL_C_VERSION__, all other predefined macros about the language mode are still valid. This change also fixes the language version check in the headers.
Diff Detail
|