Fix TARGET_OS_IPHONE checks
Some checks failed
CI (Android) / Build (Android) (push) Has been cancelled
CI / Build (macos-latest) (push) Has been cancelled
CI / Build (Steam Linux Runtime Sniper) (push) Has been cancelled
CI / Build (windows-latest) (push) Has been cancelled

This commit is contained in:
leo60228 2025-06-19 13:07:14 -04:00 committed by Ethan Lee
parent 65b024a9a3
commit 6ae4de1f94
5 changed files with 5 additions and 5 deletions

View file

@ -178,7 +178,7 @@ bool BUTTONGLYPHS_keyboard_is_available(void)
return true;
}
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
#if defined(__ANDROID__) || TARGET_OS_IPHONE
return false;
#else
return !SDL_GetHintBoolean("SteamDeck", SDL_FALSE);

View file

@ -1331,7 +1331,7 @@ static int PLATFORM_getOSDirectory(char* output, const size_t output_size)
}
SDL_snprintf(output, output_size, "%s/", externalStoragePath);
return 1;
#elif defined(TARGET_OS_IPHONE)
#elif TARGET_OS_IPHONE
// (ab)use SDL APIs to get the path to the Documents folder without needing Objective-C
const char* prefsPath = SDL_GetPrefPath("", "");
if (prefsPath == NULL)

View file

@ -381,7 +381,7 @@ void Game::init(void)
screenshot_border_timer = 0;
screenshot_saved_success = false;
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
#if defined(__ANDROID__) || TARGET_OS_IPHONE
checkpoint_saving = true;
#else
checkpoint_saving = false;

View file

@ -383,7 +383,7 @@ bool Screen::isForcedFullscreen(void)
* If you're working on a tenfoot-only build, add a def that always
* returns true!
*/
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
#if defined(__ANDROID__) || TARGET_OS_IPHONE
return true;
#else
return SDL_GetHintBoolean("SteamTenfoot", SDL_FALSE);

View file

@ -3,7 +3,7 @@
#include <stdarg.h>
#include <stdio.h>
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
#if defined(__ANDROID__) || TARGET_OS_IPHONE
// forward to SDL logging on Android, since stdout/stderr are /dev/null
// they exist on iOS, but just get forwarded to the system log anyway, so might as well provide proper metadata
#define VLOG_USE_SDL 1