diff --git a/src/mixxx.cpp b/src/mixxx.cpp index 7564cdf036bd..b319bb5152af 100644 --- a/src/mixxx.cpp +++ b/src/mixxx.cpp @@ -81,7 +81,7 @@ #include "preferences/dialog/dlgprefmodplug.h" #endif -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) #include #include #include @@ -97,7 +97,7 @@ const mixxx::Logger kLogger("MixxxMainWindow"); // hack around https://gitlab.freedesktop.org/xorg/lib/libx11/issues/25 // https://bugs.launchpad.net/mixxx/+bug/1805559 -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) typedef Bool (*WireToErrorType)(Display*, XErrorEvent*, xError*); const int NUM_HANDLERS = 256; @@ -200,7 +200,7 @@ MixxxMainWindow::~MixxxMainWindow() { void MixxxMainWindow::initialize(QApplication* pApp, const CmdlineArgs& args) { ScopedTimer t("MixxxMainWindow::initialize"); -#ifdef Q_OS_LINUX +#if defined(Q_WS_X11) // XESetWireToError will segfault if running as a Wayland client if (pApp->platformName() == QStringLiteral("xcb")) { for (auto i = 0; i < NUM_HANDLERS; ++i) {