SDL: Fix build with SDL 2.0.14 after KMOD_GUI change to enum

Since SDL 2.0.14, KMOD_GUI is no longer a macro but an enum value:
https://hg.libsdl.org/SDL/rev/15a0bc9612e9

So this code broke as the enum value doesn't satisfy `defined()`.
This commit is contained in:
Rémi Verschelde 2020-12-31 00:22:21 +01:00 committed by Rafael Kitover
parent ea2c9363f1
commit 619a5cce68
1 changed files with 2 additions and 1 deletions

View File

@ -878,7 +878,8 @@ void sdlInitVideo()
sdlResizeVideo();
}
#if defined(KMOD_GUI)
#ifndef KMOD_META
#define KMOD_META KMOD_GUI
#endif