util/enum_operators: Don't define anything for OpenCL
This file is going to be included in some headers that are shared between normal C++ and OpenCL. And sadly OpenCL can't handle this. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33439>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if defined(__cplusplus) && !defined(__OPENCL_VERSION__)
|
||||
|
||||
#include "macros.h"
|
||||
#include <type_traits>
|
||||
|
||||
Reference in New Issue
Block a user