@@ -103,7 +103,7 @@ template <typename T> struct vec_helper {
103103 static constexpr RetType get (T value) { return value; }
104104};
105105
106- #if __cplusplus >= 201703L
106+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
107107template <> struct vec_helper <std::byte> {
108108 using RetType = std::uint8_t ;
109109 static constexpr RetType get (std::byte value) { return (RetType)value; }
@@ -2206,7 +2206,7 @@ using select_apply_cl_t =
22062206 __SYCL_GET_CL_TYPE (int , num), __SYCL_GET_CL_TYPE(long , num)>; \
22072207 };
22082208
2209- #if __cplusplus >= 201703L
2209+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
22102210#define __SYCL_DECLARE_BYTE_CONVERTER (num ) \
22112211 template <> class BaseCLTypeConverter <std::byte, num> { \
22122212 public: \
@@ -2231,7 +2231,7 @@ using select_apply_cl_t =
22312231 using DataType = bool ; \
22322232 };
22332233
2234- #if __cplusplus >= 201703L
2234+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
22352235#define __SYCL_DECLARE_SCALAR_BYTE_CONVERTER \
22362236 template <> class BaseCLTypeConverter <std::byte, 1 > { \
22372237 public: \
@@ -2330,7 +2330,7 @@ using select_apply_cl_t =
23302330 __SYCL_DECLARE_SCALAR_BOOL_CONVERTER \
23312331 } // namespace detail
23322332
2333- #if __cplusplus >= 201703L
2333+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
23342334#define __SYCL_DECLARE_BYTE_VECTOR_CONVERTER \
23352335 namespace detail { \
23362336 __SYCL_DECLARE_BYTE_CONVERTER (2 ) \
@@ -2344,7 +2344,7 @@ using select_apply_cl_t =
23442344__SYCL_DECLARE_VECTOR_CONVERTERS (char )
23452345__SYCL_DECLARE_SCHAR_VECTOR_CONVERTERS
23462346__SYCL_DECLARE_BOOL_VECTOR_CONVERTERS
2347- #if __cplusplus >= 201703L
2347+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
23482348__SYCL_DECLARE_BYTE_VECTOR_CONVERTER
23492349#endif
23502350__SYCL_DECLARE_UNSIGNED_INTEGRAL_VECTOR_CONVERTERS (uchar)
@@ -2371,7 +2371,7 @@ __SYCL_DECLARE_FLOAT_VECTOR_CONVERTERS(double)
23712371#undef __SYCL_DECLARE_SCALAR_SCHAR_CONVERTER
23722372#undef __SYCL_DECLARE_BOOL_VECTOR_CONVERTERS
23732373#undef __SYCL_DECLARE_BOOL_CONVERTER
2374- #if __cplusplus >= 201703L
2374+ #if __cplusplus >= 201703L && (!defined(_HAS_STD_BYTE) || _HAS_STD_BYTE != 0)
23752375#undef __SYCL_DECLARE_BYTE_VECTOR_CONVERTER
23762376#undef __SYCL_DECLARE_BYTE_CONVERTER
23772377#undef __SYCL_DECLARE_SCALAR_BYTE_CONVERTER
0 commit comments