Skip to content

Commit c6b9973

Browse files
authored
[SYCL] Fix build error on Windows by checkin _WIN32 macro instead of WIN32 (#2825)
Signed-off-by: Vyacheslav Klochkov <[email protected]>
1 parent 8ef8798 commit c6b9973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/global_handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <detail/program_manager/program_manager.hpp>
1515
#include <detail/scheduler/scheduler.hpp>
1616

17-
#ifdef WIN32
17+
#ifdef _WIN32
1818
#include <windows.h>
1919
#endif
2020

@@ -115,7 +115,7 @@ GlobalHandler::getDeviceFilterList(const std::string &InitValue) {
115115

116116
void shutdown() { delete &GlobalHandler::instance(); }
117117

118-
#ifdef WIN32
118+
#ifdef _WIN32
119119
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
120120
// Perform actions based on the reason for calling.
121121
switch (fdwReason) {

0 commit comments

Comments
 (0)