Skip to content

Commit ecef842

Browse files
authored
[TEST-E2E] Avoid conflicts of Windows headers with std::max. (#13637)
Avoid conflicts of Windows headers with std::max using `#define NOMINMAX` The patch fixes the build error seen in [kernel_win.cpp](https://github.com/intel/llvm/blob/sycl/sycl/test-e2e/syclcompat/kernel/kernel_win.cpp)
1 parent 31692b2 commit ecef842

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/test-e2e/syclcompat/kernel/Inputs/kernel_function.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
//
3131
// ===---------------------------------------------------------------------===//
3232
#ifdef _WIN32
33+
#define NOMINMAX
3334
#include <windows.h>
35+
#undef NOMINMAX
3436
#else
3537
#include <dlfcn.h>
3638
#endif

0 commit comments

Comments
 (0)