Fix definition check (#7793)

This commit is contained in:
Cyao 2024-07-14 12:26:59 +02:00 committed by GitHub
parent c3c90b49e0
commit 126569ad5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14378,7 +14378,7 @@ static bool PlatformOpenInShellFn_DefaultImpl(ImGuiContext*, const char* path)
#include <unistd.h>
static bool PlatformOpenInShellFn_DefaultImpl(ImGuiContext*, const char* path)
{
#if __APPLE__
#if defined(__APPLE__)
const char* args[] { "open", "--", path, NULL };
#else
const char* args[] { "xdg-open", path, NULL };