Added support for Unicode applications in winebuild. Removed cuiexe_no_main hack. Avoid stdcall function declarations inside functions because of gcc bug.
diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c index 839290a..b050b8f 100644 --- a/tools/winebuild/import.c +++ b/tools/winebuild/import.c
@@ -205,6 +205,8 @@ /* add symbols that will be contained in the spec file itself */ switch (SpecMode) { + case SPEC_MODE_DLL: + break; case SPEC_MODE_GUIEXE: ADD_SYM( "GetCommandLineA" ); ADD_SYM( "GetStartupInfoA" ); @@ -213,13 +215,19 @@ case SPEC_MODE_CUIEXE: ADD_SYM( "__wine_get_main_args" ); ADD_SYM( "ExitProcess" ); + break; + case SPEC_MODE_GUIEXE_UNICODE: + ADD_SYM( "GetCommandLineA" ); + ADD_SYM( "GetStartupInfoA" ); + ADD_SYM( "GetModuleHandleA" ); /* fall through */ - case SPEC_MODE_DLL: - case SPEC_MODE_GUIEXE_NO_MAIN: - case SPEC_MODE_CUIEXE_NO_MAIN: - ADD_SYM( "RtlRaiseException" ); + case SPEC_MODE_CUIEXE_UNICODE: + ADD_SYM( "__wine_get_wmain_args" ); + ADD_SYM( "ExitProcess" ); break; } + ADD_SYM( "RtlRaiseException" ); + if (count) { for (i = 0; i < count; i++) add_undef_symbol( extras[i] );