Browse Source

Fix definition check (#7793)

Cyao 1 year ago
parent
commit
126569ad5b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

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