From 83b0bd3095ac755a79aa1314424f9dc6a01bd0ff Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 19 Apr 2010 11:46:36 +0300 Subject: libtcc.c: fix compilation failure (inconsistent tcc_add_file_internal) gcc -o libtcc1.o -c lib/libtcc1.c -O2 -Wall libtcc.c: At top level: libtcc.c:1063: error: static declaration of 'tcc_add_file_internal' follows non-static declaration tccelf.c:2915: note: previous implicit declaration of 'tcc_add_file_internal' was here Signed-off-by: Sergei Trofimovich --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtcc.c') 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; -- cgit v1.3.1