Move feature macro declaration to build scripts

PR #18825.
This commit is contained in:
Chocobo1
2023-04-10 13:38:00 +08:00
committed by GitHub
parent 4a66d705b8
commit 5dcc14153f
12 changed files with 34 additions and 31 deletions

View File

@@ -35,7 +35,7 @@
#include <IOKit/pwr_mgt/IOPMLib.h>
#endif
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
#ifdef QBT_USES_DBUS
// Require DBus
class PowerManagementInhibitor;
#endif
@@ -57,7 +57,7 @@ private:
bool m_busy = false;
#if (defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)) && defined(QT_DBUS_LIB)
#ifdef QBT_USES_DBUS
PowerManagementInhibitor *m_inhibitor = nullptr;
#endif
#ifdef Q_OS_MACOS