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:
Timur Kristóf 2025-02-07 00:33:39 +01:00
parent a724e1571f
commit c58c9e0359

View file

@ -21,7 +21,7 @@
* IN THE SOFTWARE.
*/
#ifdef __cplusplus
#if defined(__cplusplus) && !defined(__OPENCL_VERSION__)
#include "macros.h"
#include <type_traits>