From 7cf2f456c111794efd8687beee844feeab7c519d Mon Sep 17 00:00:00 2001 From: Vyacheslav Klochkov Date: Thu, 26 Nov 2020 21:13:01 -0800 Subject: [PATCH] [SYCL] Fix build error on Windows by checkin _WIN32 macro instead of WIN32 Signed-off-by: Vyacheslav Klochkov --- sycl/source/detail/global_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/source/detail/global_handler.cpp b/sycl/source/detail/global_handler.cpp index be4b9e200fda8..56c41e92b9652 100644 --- a/sycl/source/detail/global_handler.cpp +++ b/sycl/source/detail/global_handler.cpp @@ -14,7 +14,7 @@ #include #include -#ifdef WIN32 +#ifdef _WIN32 #include #endif @@ -115,7 +115,7 @@ GlobalHandler::getDeviceFilterList(const std::string &InitValue) { void shutdown() { delete &GlobalHandler::instance(); } -#ifdef WIN32 +#ifdef _WIN32 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) { // Perform actions based on the reason for calling. switch (fdwReason) {