From 83e57802cba6af56d6509332e6c123c6224ac58c Mon Sep 17 00:00:00 2001 From: Be Date: Thu, 29 Nov 2018 06:19:02 -0600 Subject: [PATCH] use #if defined rather than #ifdef --- src/mixxx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {