Skip to content

Commit cafb28a

Browse files
[SYCL] Prefer _WIN32 over WIN32 in #if expressions (#16267)
The former is defined by the toolchain while the latter is part of SDK, so using `_WIN32` is preferrable. The issue was exposed downstream due to recent changes from #16178 and #16194.
1 parent bee8a39 commit cafb28a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/include/sycl/ext/intel/experimental/pipes.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class pipe_base {
6969
#ifdef __SYCL_PIPES_CPP
7070
// Magic combination found by trial and error:
7171
__SYCL_EXPORT
72-
#ifdef WIN32
72+
#if _WIN32
7373
inline
7474
#endif
7575
#else

sycl/include/sycl/ext/oneapi/experimental/graph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class __SYCL_EXPORT modifiable_command_graph {
388388
#ifdef __SYCL_GRAPH_IMPL_CPP
389389
// Magic combination found by trial and error:
390390
__SYCL_EXPORT
391-
#if WIN32
391+
#if _WIN32
392392
inline
393393
#endif
394394
#else

0 commit comments

Comments
 (0)