Fix -Wundef warnings due to use of unguarded __ANDROID__

This commit is contained in:
Anonymous Maarten committed 2023-03-28 19:29:43 +02:00
1 parent cfa6f77780
commit 785055bedf
2 files changed
+2 -2

No files matched your search

+1 -1
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__
+1 -1
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;
}