Skip to content

Commit

Permalink
replace CONFIG_CYGWIN with Q_OS_WIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmus-scott authored and linuxdude42 committed Jan 6, 2022
1 parent c7cf422 commit fb33770
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions mythtv/libs/libmyth/mythmediamonitor.cpp
Expand Up @@ -7,6 +7,7 @@
#include <typeinfo>

// Qt headers
#include <QtGlobal>
#include <QCoreApplication>
#include <QFile>
#include <QList>
Expand All @@ -26,7 +27,7 @@

#ifdef USING_DARWIN_DA
#include "mediamonitor-darwin.h"
#elif CONFIG_CYGWIN || defined(_WIN32)
#elif defined(Q_OS_WIN)
#include "mediamonitor-windows.h"
#else
#include "mediamonitor-unix.h"
Expand Down Expand Up @@ -87,12 +88,10 @@ MediaMonitor* MediaMonitor::GetMediaMonitor(void)

#ifdef USING_DARWIN_DA
s_monitor = new MediaMonitorDarwin(nullptr, MONITOR_INTERVAL, true);
#else
#if CONFIG_CYGWIN || defined(_WIN32)
#elif defined(Q_OS_WIN)
s_monitor = new MediaMonitorWindows(nullptr, MONITOR_INTERVAL, true);
#else
#else
s_monitor = new MediaMonitorUnix(nullptr, MONITOR_INTERVAL, true);
#endif
#endif

return s_monitor;
Expand Down
5 changes: 3 additions & 2 deletions mythtv/libs/libmythbase/mythsystemlegacy.cpp
Expand Up @@ -35,6 +35,7 @@
#include <unistd.h>

// QT headers
#include <QtGlobal>
#include <QCoreApplication>

// libmythbase headers
Expand All @@ -43,7 +44,7 @@
#include "mythevent.h"
#include "mythlogging.h"

#if CONFIG_CYGWIN || defined(_WIN32)
#ifdef Q_OS_WIN
#include "mythsystemwindows.h"
#else
#include "mythsystemunix.h"
Expand All @@ -56,7 +57,7 @@

void MythSystemLegacy::initializePrivate(void)
{
#if CONFIG_CYGWIN || defined(_WIN32)
#ifdef Q_OS_WIN
d = new MythSystemLegacyWindows(this);
#else
d = new MythSystemLegacyUnix(this);
Expand Down
1 change: 0 additions & 1 deletion mythtv/settings.pro
Expand Up @@ -194,7 +194,6 @@ win32 {

CONFIG += cygwin
QMAKE_EXTENSION_SHLIB=dll.a
DEFINES += CONFIG_CYGWIN
}

} else {
Expand Down

0 comments on commit fb33770

Please sign in to comment.