Skip to content

Commit

Permalink
use #if defined rather than #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
Be-ing committed Nov 29, 2018
1 parent c82b315 commit 83e5780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixxx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#include "preferences/dialog/dlgprefmodplug.h"
#endif

#ifdef Q_OS_LINUX
#if defined(Q_OS_LINUX)
#include <QtGui/QX11Info>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
Expand All @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 83e5780

Please sign in to comment.