Skip to content

Commit f836a33

Browse files
committed
[SYCL] fix preprocessor comparison
1 parent 20212fe commit f836a33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/include/sycl/aliases.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ using cl_double = double;
141141
} // namespace opencl
142142

143143
// Vector aliases are different between SYCL 1.2.1 and SYCL 2020
144-
#if SYCL_LANGUAGE_VERSION >= 202012L
144+
#if SYCL_LANGUAGE_VERSION == 202012L
145145
__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(2)
146146
__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(3)
147147
__SYCL_2020_MAKE_VECTOR_ALIASES_FOR_VECTOR_LENGTH(4)

sycl/include/sycl/detail/defines_elementary.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#endif // __SYCL_DEPRECATED
5858

5959
#ifndef __SYCL2020_DEPRECATED
60-
#if SYCL_LANGUAGE_VERSION >= 202012L && \
60+
#if SYCL_LANGUAGE_VERSION == 202012L && \
6161
!defined(SYCL2020_DISABLE_DEPRECATION_WARNINGS)
6262
#define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message)
6363
#else

0 commit comments

Comments
 (0)