mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Use open to open webpage on osx.
This commit is contained in:
parent
a7886cf82c
commit
cffc6e21d3
@ -44,6 +44,10 @@ static void OpenWebpage( const char* url )
|
|||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
ShellExecuteA( nullptr, nullptr, url, nullptr, nullptr, 0 );
|
ShellExecuteA( nullptr, nullptr, url, nullptr, nullptr, 0 );
|
||||||
|
#elif defined __APPLE__
|
||||||
|
char buf[1024];
|
||||||
|
sprintf( buf, "open %s", url );
|
||||||
|
system( buf );
|
||||||
#else
|
#else
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
sprintf( buf, "xdg-open %s", url );
|
sprintf( buf, "xdg-open %s", url );
|
||||||
|
Loading…
Reference in New Issue
Block a user