mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 22:48:30 +00:00
Fix Android build
- Android defines SDL_PLATFORM_UNIX but does not compile core/unix sources so add checks for SDL_PLATFORM_ANDROID where SDL_gtk is used. - Fix missing void parameter list in SDL_Gtk_EnterContext. - Remove unneeded SDL_gtk.h include in SDL_events.c
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
// this checks for HAVE_DBUS_DBUS_H internally.
|
||||
#include "core/linux/SDL_dbus.h"
|
||||
|
||||
#ifdef SDL_PLATFORM_UNIX
|
||||
#if defined(SDL_PLATFORM_UNIX) && !defined(SDL_PLATFORM_ANDROID)
|
||||
#include "core/unix/SDL_gtk.h"
|
||||
#endif
|
||||
|
||||
@@ -667,7 +667,7 @@ void SDL_Quit(void)
|
||||
SDL_DBus_Quit();
|
||||
#endif
|
||||
|
||||
#ifdef SDL_PLATFORM_UNIX
|
||||
#if defined(SDL_PLATFORM_UNIX) && !defined(SDL_PLATFORM_ANDROID)
|
||||
SDL_Gtk_Quit();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user