Skip to content

Commit

Permalink
Fix "is not defined, evaluates to 0" warning on android.
Browse files Browse the repository at this point in the history
Check whether or not a preprocessor symbol is defined instead of
checking its value.  This is how the symbol is checked earlier in the
file.
  • Loading branch information
linuxdude42 committed Jul 31, 2023
1 parent 4058d60 commit a90e4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/mythpower.cpp
Expand Up @@ -90,7 +90,7 @@ MythPower* MythPower::AcquireRelease(void *Reference, bool Acquire, std::chrono:
#ifdef Q_OS_DARWIN
// NB OSX may have DBUS but it won't help here
s_instance = new MythPowerOSX();
#elif USING_DBUS
#elif defined(USING_DBUS)
if (MythPowerDBus::IsAvailable())
s_instance = new MythPowerDBus();
#endif
Expand Down

0 comments on commit a90e4b9

Please sign in to comment.