mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-25 23:42:37 +00:00
Fix -Wundef warnings due to use of unguarded __ANDROID__
This commit is contained in:
parent
cfa6f77780
commit
785055bedf
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue