Skip to content

Commit

Permalink
IO: disable default io.PlatformOpenInShellFn() implementation on iPho…
Browse files Browse the repository at this point in the history
…ne, as compiler errors that system() is not available on iOS.
  • Loading branch information
ocornut committed Jul 2, 2024
1 parent 43925b9 commit dadf9cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <shellapi.h> // ShellExecuteA()
#ifdef _MSC_VER
Expand Down

0 comments on commit dadf9cd

Please sign in to comment.