From cffc6e21d3f775fe46796ef8985cc3f523cf99e0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Apr 2019 13:58:13 +0200 Subject: [PATCH] Use open to open webpage on osx. --- profiler/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 215ec5a1..e755a97f 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -44,6 +44,10 @@ static void OpenWebpage( const char* url ) { #ifdef _WIN32 ShellExecuteA( nullptr, nullptr, url, nullptr, nullptr, 0 ); +#elif defined __APPLE__ + char buf[1024]; + sprintf( buf, "open %s", url ); + system( buf ); #else char buf[1024]; sprintf( buf, "xdg-open %s", url );