From 233e22f23d52b8c4faa4736c517c59868d842ab4 Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Sat, 9 Nov 2024 08:24:58 +0100 Subject: [PATCH] Fix compile problem on windows --- tccdbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tccdbg.c b/tccdbg.c index 4176fd63..f82d6bbe 100644 --- a/tccdbg.c +++ b/tccdbg.c @@ -797,7 +797,7 @@ static void tcc_debug_frame_end(TCCState *s1, int size) dwarf_data4(eh_frame_section, 0); // length dwarf_data4(eh_frame_section, fde_start - s1->eh_start + 4); // CIE Pointer -#if TCC_TARGET_I386 +#if defined TCC_TARGET_I386 dwarf_reloc(eh_frame_section, eh_section_sym, R_386_PC32); #elif defined TCC_TARGET_X86_64 dwarf_reloc(eh_frame_section, eh_section_sym, R_X86_64_PC32); @@ -811,7 +811,7 @@ static void tcc_debug_frame_end(TCCState *s1, int size) dwarf_data4(eh_frame_section, func_ind); // PC Begin dwarf_data4(eh_frame_section, size); // PC Range dwarf_data1(eh_frame_section, 0); // Augmentation Length -#if TCC_TARGET_I386 +#if defined TCC_TARGET_I386 dwarf_data1(eh_frame_section, DW_CFA_advance_loc + 1); dwarf_data1(eh_frame_section, DW_CFA_def_cfa_offset); dwarf_uleb128(eh_frame_section, 8);