diff --git a/shlr/tcc/libtcc.c b/shlr/tcc/libtcc.c index 1a25e7d935880..a60355ad688f2 100644 --- a/shlr/tcc/libtcc.c +++ b/shlr/tcc/libtcc.c @@ -856,6 +856,7 @@ static const FlagDef flag_defs[] = { { offsetof(TCCState, leading_underscore), 0, "leading-underscore" }, }; #endif +void (*tcc_cb)(const char *, char **); PUB_FUNC void tcc_set_callback (TCCState *s, void (*cb)(const char *,char**), char **p) { tcc_cb = cb; diff --git a/shlr/tcc/tcc.h b/shlr/tcc/tcc.h index e1c974adeaad6..77b063078e93d 100644 --- a/shlr/tcc/tcc.h +++ b/shlr/tcc/tcc.h @@ -1027,6 +1027,5 @@ ST_FUNC int classify_x86_64_va_arg(CType *ty); PUB_FUNC void tcc_appendf (const char *fmt, ...); extern void (*tcc_cb)(const char *, char **); -void (*tcc_cb)(const char *, char **); #endif /* _TCC_H */