Fix -Wundef warnings due to use of unguarded __ANDROID__
This commit is contained in:
1 parent
cfa6f77780
commit
785055bedf
2 files changed
+2
-2
No files matched your search
@@ -620,7 +620,7 @@ SDL_GetPlatform(void)
|
|||||||
SDL_bool
|
SDL_bool
|
||||||
SDL_IsTablet(void)
|
SDL_IsTablet(void)
|
||||||
{
|
{
|
||||||
#if __ANDROID__
|
#if defined(__ANDROID__)
|
||||||
extern SDL_bool SDL_IsAndroidTablet(void);
|
extern SDL_bool SDL_IsAndroidTablet(void);
|
||||||
return SDL_IsAndroidTablet();
|
return SDL_IsAndroidTablet();
|
||||||
#elif __IOS__
|
#elif __IOS__
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ typedef struct
|
|||||||
|
|
||||||
static Uint32 SDL_DefaultGraphicsBackends(SDL_VideoDevice *_this)
|
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) {
|
if (_this->GL_CreateContext != NULL) {
|
||||||
return SDL_WINDOW_OPENGL;
|
return SDL_WINDOW_OPENGL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user