Skip to content

Commit 6436627

Browse files
[SYCL] Fix macro conflict (#8468)
Apparently, `IN` macro is defined by some header file brought by `#include <windows.h>`. Therefore, changed `IN` to `_IN` to fix compilation issue on Windows.
1 parent 346f791 commit 6436627

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/include/sycl/types.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,12 +2140,12 @@ __SYCL_DEFINE_VECSTORAGE_IMPL_FOR_TYPE(double, double)
21402140
#undef __SYCL_DEFINE_VECSTORAGE_IMPL
21412141
#endif // __SYCL_USE_EXT_VECTOR_TYPE__
21422142
// select_apply_cl_t selects from T8/T16/T32/T64 basing on
2143-
// sizeof(IN). expected to handle scalar types in IN.
2144-
template <typename IN, typename T8, typename T16, typename T32, typename T64>
2143+
// sizeof(_IN). expected to handle scalar types in _IN.
2144+
template <typename _IN, typename T8, typename T16, typename T32, typename T64>
21452145
using select_apply_cl_t =
2146-
conditional_t<sizeof(IN) == 1, T8,
2147-
conditional_t<sizeof(IN) == 2, T16,
2148-
conditional_t<sizeof(IN) == 4, T32, T64>>>;
2146+
conditional_t<sizeof(_IN) == 1, T8,
2147+
conditional_t<sizeof(_IN) == 2, T16,
2148+
conditional_t<sizeof(_IN) == 4, T32, T64>>>;
21492149
// Single element bool
21502150
template <> struct VecStorage<bool, 1, void> {
21512151
using DataType = bool;

0 commit comments

Comments
 (0)