Skip to content

Commit

Permalink
std.process: Generate browse docs on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Feb 24, 2012
1 parent 7718dc6 commit 2248a95
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions std/process.d
Expand Up @@ -731,6 +731,14 @@ unittest
}


version(StdDdoc)
{
/****************************************
* Start up the browser and set it to viewing the page at url.
*/
void browse(string url);
}
else
version (Windows)
{
import core.sys.windows.windows;
Expand All @@ -741,9 +749,6 @@ version (Windows)

pragma(lib,"shell32.lib");

/****************************************
* Start up the browser and set it to viewing the page at url.
*/
void browse(string url)
{
ShellExecuteA(null, "open", toStringz(url), null, null, SW_SHOWNORMAL);
Expand Down

0 comments on commit 2248a95

Please sign in to comment.