ChangeLog 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. Index: tools/winewrap.c =================================================================== RCS file: /var/cvs/wine/tools/winewrap.c,v retrieving revision 1.11 diff -u -r1.11 winewrap.c --- tools/winewrap.c 18 Feb 2003 23:23:10 -0000 1.11 +++ tools/winewrap.c 19 Feb 2003 07:07:23 -0000 @@ -469,8 +469,7 @@ 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 @@ 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"); -- Dimi.