aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tccrun.c b/tccrun.c
index 3a6a82d..4903f90 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -748,7 +748,7 @@ static TCCSyms tcc_syms[] = {
{ NULL, NULL },
};
-ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol)
+ST_FUNC void *dlsym(int flag, const char *symbol)
{
TCCSyms *p;
p = tcc_syms;
@@ -760,13 +760,6 @@ ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol)
return NULL;
}
-#elif !defined(_WIN32)
-
-ST_FUNC void *resolve_sym(TCCState *s1, const char *sym)
-{
- return dlsym(RTLD_DEFAULT, sym);
-}
-
#endif /* CONFIG_TCC_STATIC */
#endif /* TCC_IS_NATIVE */
/* ------------------------------------------------------------- */