mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
sdl: move version logic from source code to makefile
Compile sdl.c / sdl2.c depending on CONFIG_SDLABI instead of compiling both and have version #ifdefs in the source code. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
dfa9c2a0f4
commit
d29c431edc
3 changed files with 6 additions and 7 deletions
3
ui/sdl.c
3
ui/sdl.c
|
|
@ -26,8 +26,6 @@
|
|||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#if SDL_MAJOR_VERSION == 1
|
||||
#include <SDL_syswm.h>
|
||||
|
||||
#include "qemu-common.h"
|
||||
|
|
@ -958,4 +956,3 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
|
|||
|
||||
atexit(sdl_cleanup);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue