Now it builds for ios with some objective-c.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4518 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-14 02:11:20 +00:00
parent a57916b3db
commit 84eaa3e2fd
2 changed files with 20 additions and 2 deletions

View File

@ -22,6 +22,10 @@
#include <sys/resource.h>
#endif
#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif
#if !defined(_WIN32)
#include <unistd.h>
#endif
@ -30,6 +34,9 @@
#define _countof(a) ((int)(sizeof((a)) / sizeof(*(a))))
#endif
struct backtrace_state* g_backtrace_state;
#if !TARGET_OS_IPHONE
#define XOPT_PARSE(name, flags, options, config_ptr, argc, argv, extrac_ptr, extrav_ptr, err_ptr, autohelp_file, autohelp_usage, autohelp_prefix, autohelp_suffix, autohelp_spacer) do { \
xoptContext *_xopt_ctx; \
*(err_ptr) = NULL; \
@ -83,8 +90,6 @@ const command_t k_commands[] = {
const char* k_db_path_default = "db.sqlite";
struct backtrace_state* g_backtrace_state;
void shedPrivileges()
{
#if !defined(_WIN32)
@ -648,3 +653,4 @@ done:
tf_mem_shutdown();
return result;
}
#endif