From 126569ad5b3a2c5329cc8ee914dd5b2075f4dd50 Mon Sep 17 00:00:00 2001 From: Cyao <94928179+cheyao@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:26:59 +0200 Subject: [PATCH] Fix definition check (#7793) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 2091267b6..0917c3092 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -14378,7 +14378,7 @@ static bool PlatformOpenInShellFn_DefaultImpl(ImGuiContext*, const char* path) #include 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 };