winegcc: Link with msvcrt on windows because of __wargv

Austin English austinenglish at gmail.com
Thu Mar 18 15:11:45 CDT 2010


On Thu, Mar 18, 2010 at 9:21 AM, Alexandre Goujon <ale.goujon at gmail.com> wrote:
> ---
>  tools/winegcc/winegcc.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
> index c2e7876..a929214 100644
> --- a/tools/winegcc/winegcc.c
> +++ b/tools/winegcc/winegcc.c
> @@ -555,6 +555,10 @@ static const char *mingw_unicode_hack( struct options *opts )
>  {
>     char *main_stub = get_temp_file( opts->output_name, ".c" );
>
> +    //we need to link with msvcrt because of __wargv
> +    if (!opts->use_msvcrt)
> +       opts->use_msvcrt = 1;
> +
>     create_file( main_stub, 0644,
>                  "#include <stdlib.h>\n"
>                  "extern int wmain(int,wchar_t**);\n"
> --
> 1.6.3.3

Please avoid C++ comments, use /* comments */ instead.

-- 
-Austin



More information about the wine-devel mailing list