diff options
Diffstat (limited to 'tccrun.c')
| -rw-r--r-- | tccrun.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -36,11 +36,10 @@ static int rt_get_caller_pc(uplong *paddr, ucontext_t *uc, int level); static void rt_error(ucontext_t *uc, const char *fmt, ...); static int tcc_relocate_ex(TCCState *s1, void *ptr); -#if defined TCC_TARGET_X86_64 && defined TCC_TARGET_PE +#ifdef _WIN64 static void win64_add_function_table(TCCState *s1); #endif - /* ------------------------------------------------------------- */ /* Do all relocations (needed before using tcc_get_symbol()) Returns -1 on error. */ @@ -194,7 +193,7 @@ static int tcc_relocate_ex(TCCState *s1, void *ptr) s1->runtime_plt_and_got_offset); #endif -#if defined TCC_TARGET_X86_64 && defined TCC_TARGET_PE +#ifdef _WIN64 win64_add_function_table(s1); #endif return 0; @@ -622,8 +621,7 @@ static void set_exception_handler(void) SetUnhandledExceptionFilter(cpu_exception_handler); } -#ifdef TCC_TARGET_PE -#ifdef TCC_TARGET_X86_64 +#ifdef _WIN64 static void win64_add_function_table(TCCState *s1) { RtlAddFunctionTable( @@ -633,7 +631,6 @@ static void win64_add_function_table(TCCState *s1) ); } #endif -#endif /* return the PC at frame level 'level'. Return non zero if not found */ static int rt_get_caller_pc(uplong *paddr, CONTEXT *uc, int level) |
