aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtcc.c2
-rw-r--r--tcc.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 6a88089..62c252d 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1060,7 +1060,7 @@ LIBTCCAPI int tcc_add_sysinclude_path(TCCState *s1, const char *pathname)
return 0;
}
-static int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
+ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
{
const char *ext;
ElfW(Ehdr) ehdr;
diff --git a/tcc.h b/tcc.h
index b59f61a..13cf314 100644
--- a/tcc.h
+++ b/tcc.h
@@ -926,6 +926,7 @@ ST_FUNC Sym *global_identifier_push(int v, int t, int c);
ST_FUNC BufferedFile *tcc_open(TCCState *s1, const char *filename);
ST_FUNC void tcc_close(BufferedFile *bf);
+ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags);
ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags);
PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value);
PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time);