Fix -Wundef warnings due to use of unguarded __ANDROID__

This commit is contained in:
Anonymous Maarten
2023-03-27 15:02:32 +02:00
parent cfa6f77780
commit 785055bedf
2 changed files with 2 additions and 2 deletions

View File

@@ -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__

View File

@@ -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;
}