2 // Compiler implementation of the D programming language
3 // Copyright (c) 2008-2008 by Digital Mars
5 // written by Walter Bright
6 // http://www.digitalmars.com
7 // License for redistribution is by either the Artistic License
8 // in artistic.txt, or the GNU General Public License in gnu.txt.
9 // See the included readme.txt for details.
20 #pragma comment(lib,"shell32.lib")
22 void browse(const char *url
)
24 ShellExecute(NULL
, "open", url
, NULL
, NULL
, SW_SHOWNORMAL
);
31 #include <sys/types.h>
35 void browse(const char *url
)
40 char *browser
= getenv("BROWSER");
42 browser
= strdup(browser
);
53 execvp(args
[0], (char**)args
);
54 perror(args
[0]); // failed to execute