# HG changeset patch # User Christian Kamm # Date 1223155729 -7200 # Node ID 51c4d1a64da6926804fb384dbfefc987d51c578b # Parent bb8d73e29324640fff4dcbfacb4bf019844cf5ed Portability changes to dmain2.d diff -r bb8d73e29324 -r 51c4d1a64da6 runtime/internal/dmain2.d --- 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);