Mercurial > projects > ldc
changeset 646:51c4d1a64da6
Portability changes to dmain2.d
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 04 Oct 2008 23:28:49 +0200 |
parents | bb8d73e29324 |
children | 669a2c84f4e4 8d850fa25713 |
files | runtime/internal/dmain2.d |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/internal/dmain2.d Sat Oct 04 13:35:27 2008 +0200 +++ b/runtime/internal/dmain2.d Sat Oct 04 23:28:49 2008 +0200 @@ -176,6 +176,7 @@ initStaticDataPtrs(); debug(PRINTF) printf("main args\n"); + // GDC seems to get by without this Windows special case... version (Win32) { wchar_t* wcbuf = GetCommandLineW(); @@ -202,7 +203,7 @@ wargs = null; wargc = 0; } - else version (linux) + else { char[]* am = cast(char[]*) malloc(argc * (char[]).sizeof); scope(exit) free(am);