From dadf9cd039b03c799fae5dd8fe54eb4d39b26f25 Mon Sep 17 00:00:00 2001 From: ocornut Date: Tue, 2 Jul 2024 16:23:46 +0200 Subject: [PATCH] IO: disable default io.PlatformOpenInShellFn() implementation on iPhone, as compiler errors that system() is not available on iOS. --- imgui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index 55a32910b..260f1608c 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -14343,6 +14343,10 @@ static void SetClipboardTextFn_DefaultImpl(void* user_data_ctx, const char* text //----------------------------------------------------------------------------- +#if defined(__APPLE__) && defined(TARGET_OS_IPHONE) && !defined(IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS) +#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS +#endif + #if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS) #include // ShellExecuteA() #ifdef _MSC_VER