diff options
Diffstat (limited to 'intern/cycles/util/types_int2_impl.h')
-rw-r--r-- | intern/cycles/util/types_int2_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/types_int2_impl.h b/intern/cycles/util/types_int2_impl.h index 7989c4d5506..7bdc77369ee 100644 --- a/intern/cycles/util/types_int2_impl.h +++ b/intern/cycles/util/types_int2_impl.h @@ -10,7 +10,7 @@ CCL_NAMESPACE_BEGIN -#ifndef __KERNEL_GPU__ +#if !defined(__KERNEL_GPU__) || defined(__KERNEL_ONEAPI__) int int2::operator[](int i) const { util_assert(i >= 0); @@ -30,7 +30,7 @@ ccl_device_inline int2 make_int2(int x, int y) int2 a = {x, y}; return a; } -#endif /* __KERNEL_GPU__ */ +#endif /* !defined(__KERNEL_GPU__) || defined(__KERNEL_ONEAPI__) */ CCL_NAMESPACE_END |