mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-12 19:51:33 +02:00
Fix -Wundef warnings due to use of unguarded __ANDROID__
This commit is contained in:
@@ -620,7 +620,7 @@ SDL_GetPlatform(void)
|
||||
SDL_bool
|
||||
SDL_IsTablet(void)
|
||||
{
|
||||
#if __ANDROID__
|
||||
#if defined(__ANDROID__)
|
||||
extern SDL_bool SDL_IsAndroidTablet(void);
|
||||
return SDL_IsAndroidTablet();
|
||||
#elif __IOS__
|
||||
|
||||
@@ -192,7 +192,7 @@ typedef struct
|
||||
|
||||
static Uint32 SDL_DefaultGraphicsBackends(SDL_VideoDevice *_this)
|
||||
{
|
||||
#if (SDL_VIDEO_OPENGL && __MACOS__) || (__IOS__ && !TARGET_OS_MACCATALYST) || __ANDROID__
|
||||
#if (SDL_VIDEO_OPENGL && __MACOS__) || (__IOS__ && !TARGET_OS_MACCATALYST) || defined(__ANDROID__)
|
||||
if (_this->GL_CreateContext != NULL) {
|
||||
return SDL_WINDOW_OPENGL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user