ios: Fix exporting/downloading to file.
Some checks failed
Build Tilde Friends / Build-All (push) Has been cancelled

This commit is contained in:
2025-11-09 11:54:37 -05:00
parent 61200c4a7d
commit 4447ea63e2
4 changed files with 79 additions and 5 deletions

View File

@@ -17,12 +17,15 @@
#include <TargetConditionals.h>
#if TARGET_OS_IPHONE
#include <os/log.h>
#include <stdio.h>
#define tf_printf(...) \
do \
{ \
char buffer##__LINE__[2048]; \
snprintf(buffer##__LINE__, sizeof(buffer##__LINE__), __VA_ARGS__); \
os_log(OS_LOG_DEFAULT, "%{public}s", buffer##__LINE__); \
fputs(buffer##__LINE__, stdout); \
fflush(stdout); \
} while (0)
#else
#include <stdio.h>