From 17c5a0ce44dbb0062f8acc5c664762ef04eb9ad0 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 23 Jan 2023 11:37:19 +0100 Subject: [PATCH] SDL: Don't use SDLK_UNDO prior to its introduction in SDL-1.2.3 --- backends/events/sdl/sdl-events.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 5d702698ee8..11a8f6849d6 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -318,7 +318,9 @@ Common::KeyCode SdlEventSource::SDLToOSystemKeycode(const SDL_Keycode key) { case SDLK_SYSREQ: return Common::KEYCODE_SYSREQ; case SDLK_MENU: return Common::KEYCODE_MENU; case SDLK_POWER: return Common::KEYCODE_POWER; +#if SDL_VERSION_ATLEAST(1, 2, 3) case SDLK_UNDO: return Common::KEYCODE_UNDO; +#endif #if SDL_VERSION_ATLEAST(2, 0, 0) case SDLK_SCROLLLOCK: return Common::KEYCODE_SCROLLOCK; case SDLK_NUMLOCKCLEAR: return Common::KEYCODE_NUMLOCK;