winegcc: Recognize .obj files as objects.

For more compatibility with mingw-gcc. Since meson always names object
files with a .obj extension when using mingw, this improves
compatibility with meson.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Connor Abbott 2021-07-02 11:47:58 +02:00 committed by Alexandre Julliard
parent 363fc54a1c
commit f1ab3c8d76
1 changed files with 1 additions and 0 deletions

View File

@ -230,6 +230,7 @@ file_type get_file_type(const char* filename)
if (cnt == sizeof(res_sig) && !memcmp(buf, res_sig, sizeof(res_sig))) return file_res;
if (strendswith(filename, ".o")) return file_obj;
if (strendswith(filename, ".obj")) return file_obj;
if (strendswith(filename, ".a")) return file_arh;
if (strendswith(filename, ".res")) return file_res;
if (strendswith(filename, ".so")) return file_so;