Skip to content

Commit dadf9cd

Browse files
committed
IO: disable default io.PlatformOpenInShellFn() implementation on iPhone, as compiler errors that system() is not available on iOS.
1 parent 43925b9 commit dadf9cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imgui.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -14343,6 +14343,10 @@ static void SetClipboardTextFn_DefaultImpl(void* user_data_ctx, const char* text
1434314343

1434414344
//-----------------------------------------------------------------------------
1434514345

14346+
#if defined(__APPLE__) && defined(TARGET_OS_IPHONE) && !defined(IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS)
14347+
#define IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS
14348+
#endif
14349+
1434614350
#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(IMGUI_DISABLE_DEFAULT_SHELL_FUNCTIONS)
1434714351
#include <shellapi.h> // ShellExecuteA()
1434814352
#ifdef _MSC_VER

0 commit comments

Comments
 (0)