Commit 1b74cf2c authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

No need to support -mwindows as a synonim for -mgui: it's a gcc-ism

that is handled in winegcc. Link in GDI only in gui mode.
parent 513ab31f
......@@ -469,8 +469,7 @@ int main(int argc, char **argv)
add_lib_file(library);
break;
case 'm':
if (strcmp("-mwindows", argv[i]) == 0) gui_mode = 1;
else if (strcmp("-mgui", argv[i]) == 0) gui_mode = 1;
if (strcmp("-mgui", argv[i]) == 0) gui_mode = 1;
else error("Unknown option %s\n", argv[i]);
break;
case 'v': /* verbose */
......@@ -508,8 +507,8 @@ int main(int argc, char **argv)
if (create_wrapper == -1) create_wrapper = cpp;
/* link in by default the big three */
if (gui_mode) add_lib_file("gdi32");
add_lib_file("user32");
add_lib_file("gdi32");
add_lib_file("kernel32");
app_temp_name = tempnam(0, "wapp");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment