diff --git a/tccelf.c b/tccelf.c index 8b03a32bb..74e7019a9 100644 --- a/tccelf.c +++ b/tccelf.c @@ -3020,7 +3020,7 @@ LIBTCCAPI int tcc_output_file(TCCState *s, const char *filename) return elf_output_obj(s, filename); #ifdef TCC_TARGET_PE return pe_output_file(s, filename); -#elif TCC_TARGET_MACHO +#elif defined TCC_TARGET_MACHO return macho_output_file(s, filename); #else return elf_output_file(s, filename);