April 20, 2026
2:38 p.m.
Akihiro Sagawa (@sgwaki) commented about tools/makedep.c:
*/ static void output_source_sfd( struct makefile *make, struct incl_file *source, const char *obj ) { - char *ttf_obj = strmake( "%s.ttf", obj ); - char *ttf_file = src_dir_path( make, ttf_obj ); + int is_otf = source->file->flags & FLAG_SFD_OTF; + const char *ext = is_otf ? "otf" : "ttf"; + char *font_obj = strmake( "%s.%s", obj, ext ); + char *font_file = src_dir_path( make, font_obj ); As mentioned above, the third parameter is no longer needed, so this code block can be simplified.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10603#note_137102