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.
This commit is contained in:
parent
513ab31f43
commit
1b74cf2cb6
|
@ -469,8 +469,7 @@ int main(int argc, char **argv)
|
||||||
add_lib_file(library);
|
add_lib_file(library);
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'm':
|
||||||
if (strcmp("-mwindows", argv[i]) == 0) gui_mode = 1;
|
if (strcmp("-mgui", argv[i]) == 0) gui_mode = 1;
|
||||||
else if (strcmp("-mgui", argv[i]) == 0) gui_mode = 1;
|
|
||||||
else error("Unknown option %s\n", argv[i]);
|
else error("Unknown option %s\n", argv[i]);
|
||||||
break;
|
break;
|
||||||
case 'v': /* verbose */
|
case 'v': /* verbose */
|
||||||
|
@ -508,8 +507,8 @@ int main(int argc, char **argv)
|
||||||
if (create_wrapper == -1) create_wrapper = cpp;
|
if (create_wrapper == -1) create_wrapper = cpp;
|
||||||
|
|
||||||
/* link in by default the big three */
|
/* link in by default the big three */
|
||||||
|
if (gui_mode) add_lib_file("gdi32");
|
||||||
add_lib_file("user32");
|
add_lib_file("user32");
|
||||||
add_lib_file("gdi32");
|
|
||||||
add_lib_file("kernel32");
|
add_lib_file("kernel32");
|
||||||
|
|
||||||
app_temp_name = tempnam(0, "wapp");
|
app_temp_name = tempnam(0, "wapp");
|
||||||
|
|
Loading…
Reference in New Issue