Skip to content

Commit

Permalink
Merge pull request #590 from RiccardoGrieco/update-os-checks
Browse files Browse the repository at this point in the history
Use _WIN32 to check windows OS
  • Loading branch information
GiulioRomualdi authored Jan 31, 2023
2 parents 91527ad + a1456fa commit b045e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/System/src/QuitHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void my_handler(int sig)
customHandlerLambda();
}

#ifdef WIN32
#ifdef _WIN32

#include <windows.h>

Expand All @@ -67,7 +67,7 @@ BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)

void handleQuitSignals(std::function<void()> customHandler)
{
#ifdef WIN32
#ifdef _WIN32
SetConsoleCtrlHandler(CtrlHandler, TRUE);
#else
struct sigaction action;
Expand Down

0 comments on commit b045e79

Please sign in to comment.