Add support for launching URLs on MacOSX

This commit is contained in:
Henrik Rydgård committed 2013-10-31 17:46:59 +01:00
1 parent 55b8a95a29
commit 4c8922d9e7
1 file changed
+4
+4
View File
@@ -232,6 +232,10 @@ void LaunchBrowser(const char *url)
#elif __linux__
std::string command = std::string("xdg-open ") + url;
system(command.c_str());
#elif __APPLE__
char temp[1024];
sprintf(temp, "open %s", url);
system(temp);
#else
ILOG("Would have gone to %s but LaunchBrowser is not implemented on this platform", url);
#endif