From c58c9e035971559d3099a8f4f21fd2a07d6e3acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Fri, 7 Feb 2025 00:33:39 +0100 Subject: [PATCH] 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 Acked-by: Faith Ekstrand Part-of: --- src/util/enum_operators.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/enum_operators.h b/src/util/enum_operators.h index 8d7d37a4e1b..7f1ed0135d9 100644 --- a/src/util/enum_operators.h +++ b/src/util/enum_operators.h @@ -21,7 +21,7 @@ * IN THE SOFTWARE. */ -#ifdef __cplusplus +#if defined(__cplusplus) && !defined(__OPENCL_VERSION__) #include "macros.h" #include