From ef7e84454ecdc3e892c7f82ad72a2142f9898431 Mon Sep 17 00:00:00 2001 From: checkroom Date: Wed, 20 Nov 2024 01:39:04 +0000 Subject: [PATCH] Fixing preprocessor edge case preventing building with meson https://github.com/KaruroChori/tcc-vs --- tccelf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccelf.c b/tccelf.c index 8b03a32b..74e7019a 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);