Skip to content

Commit

Permalink
Recognize .h files with -E
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhsnn committed Nov 26, 2024
1 parent fab69f6 commit 486f55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ static FileType get_file_type(char *filename) {
if (endswith(filename, ".S"))
return FILE_PP_ASM;

if (opt_E && !strcmp(filename, "-"))
if (opt_E && (!strcmp(filename, "-") || endswith(filename, ".h")))
return FILE_C;

char *p = strstr(filename, ".so.");
Expand Down

0 comments on commit 486f55a

Please sign in to comment.