build: Replace WINAPI_MSWINDOWS with Q_OS_WIN

This commit is contained in:
sithlord48
2026-02-27 22:52:23 -05:00
committed by Chris Rizzitello
parent f2a54f4af0
commit e4cf1392c9
3 changed files with 4 additions and 5 deletions

View File

@ -103,7 +103,6 @@ set(REQUIRED_LIBPORTAL_VERSION 0.9.1)
set(REQUIRED_QT_VERSION 6.7.0)
if (WIN32)
add_definitions(-DWINAPI_MSWINDOWS)
# VSCMD_ARG_TGT_ARCH is set on CI
if ("$ENV{VSCMD_ARG_TGT_ARCH}" STREQUAL "")
# NOT on CI

View File

@ -22,7 +22,7 @@
#include "net/SocketMultiplexer.h"
#include "net/TCPSocketFactory.h"
#if WINAPI_MSWINDOWS
#if defined(Q_OS_WIN)
#include "platform/MSWindowsScreen.h"
#endif
@ -104,7 +104,7 @@ const char *ClientApp::daemonName() const
deskflow::Screen *ClientApp::createScreen()
{
#if WINAPI_MSWINDOWS
#if defined(Q_OS_WIN)
return new deskflow::Screen(
new MSWindowsScreen(
false, Settings::value(Settings::Core::UseHooks).toBool(), getEvents(),

View File

@ -30,7 +30,7 @@
// must be before screen header includes
#include <QFileInfo>
#if WINAPI_MSWINDOWS
#if defined(Q_OS_WIN)
#include "platform/MSWindowsScreen.h"
#endif
@ -392,7 +392,7 @@ bool ServerApp::startServer()
deskflow::Screen *ServerApp::createScreen()
{
#if WINAPI_MSWINDOWS
#if defined(Q_OS_WIN)
return new deskflow::Screen(
new MSWindowsScreen(true, Settings::value(Settings::Core::UseHooks).toBool(), getEvents()), getEvents()
);