mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Core/UICommon: Fix EnableScreenSaver preprocessor directive
The include for X11Utils.h (and by extension Xlib.h) is gated behind HAVE_XRANDR, as well as the declaration for this function, but its definition was mistakenly gated behind HAVE_X11. Therefore, if we have X11 but not Xrandr, the build will fail due to declaration/definition mismatch and the missing Window type.
This commit is contained in:
parent
2488e4a587
commit
ac9b246809
@ -396,7 +396,7 @@ bool TriggerSTMPowerEvent()
|
||||
return true;
|
||||
}
|
||||
|
||||
#if defined(HAVE_XRANDR) && HAVE_X11
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
void EnableScreenSaver(Window win, bool enable)
|
||||
#else
|
||||
void EnableScreenSaver(bool enable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user