summaryrefslogtreecommitdiff
path: root/ui/sdl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-11-11 10:13:08 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-12-16 14:15:27 +0100
commitd29c431edce6c0cd18fc5c4ecf31417c2569ae4a (patch)
treefbb4fa1964341b0720ebff005fd67db7b927e0a5 /ui/sdl.c
parentdfa9c2a0f4d0a0c8b2c1449ecdbb1297427e1560 (diff)
downloadqemu-d29c431edce6c0cd18fc5c4ecf31417c2569ae4a.tar.gz
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>
Diffstat (limited to 'ui/sdl.c')
-rw-r--r--ui/sdl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ui/sdl.c b/ui/sdl.c
index 94c1d9dc3a..3e9d81076b 100644
--- a/ui/sdl.c
+++ b/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