Skip to content

Commit 6ae4de1

Browse files
leo60228flibitijibibo
authored andcommitted
Fix TARGET_OS_IPHONE checks
1 parent 65b024a commit 6ae4de1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

desktop_version/src/ButtonGlyphs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ bool BUTTONGLYPHS_keyboard_is_available(void)
178178
return true;
179179
}
180180

181-
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
181+
#if defined(__ANDROID__) || TARGET_OS_IPHONE
182182
return false;
183183
#else
184184
return !SDL_GetHintBoolean("SteamDeck", SDL_FALSE);

desktop_version/src/FileSystemUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ static int PLATFORM_getOSDirectory(char* output, const size_t output_size)
13311331
}
13321332
SDL_snprintf(output, output_size, "%s/", externalStoragePath);
13331333
return 1;
1334-
#elif defined(TARGET_OS_IPHONE)
1334+
#elif TARGET_OS_IPHONE
13351335
// (ab)use SDL APIs to get the path to the Documents folder without needing Objective-C
13361336
const char* prefsPath = SDL_GetPrefPath("", "");
13371337
if (prefsPath == NULL)

desktop_version/src/Game.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ void Game::init(void)
381381
screenshot_border_timer = 0;
382382
screenshot_saved_success = false;
383383

384-
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
384+
#if defined(__ANDROID__) || TARGET_OS_IPHONE
385385
checkpoint_saving = true;
386386
#else
387387
checkpoint_saving = false;

desktop_version/src/Screen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ bool Screen::isForcedFullscreen(void)
383383
* If you're working on a tenfoot-only build, add a def that always
384384
* returns true!
385385
*/
386-
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
386+
#if defined(__ANDROID__) || TARGET_OS_IPHONE
387387
return true;
388388
#else
389389
return SDL_GetHintBoolean("SteamTenfoot", SDL_FALSE);

desktop_version/src/Vlogging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdarg.h>
44
#include <stdio.h>
55

6-
#if defined(__ANDROID__) || defined(TARGET_OS_IPHONE)
6+
#if defined(__ANDROID__) || TARGET_OS_IPHONE
77
// forward to SDL logging on Android, since stdout/stderr are /dev/null
88
// they exist on iOS, but just get forwarded to the system log anyway, so might as well provide proper metadata
99
#define VLOG_USE_SDL 1

0 commit comments

Comments
 (0)