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
Unified · Split
| @@ -1060,7 +1060,7 @@ LIBTCCAPI int tcc_add_sysinclude_path(TCCState *s1, const char *pathname) · 1059 unmodified lines | ||
| 1060 | 1060 | return 0; |
| 1061 | 1061 | } |
| 1062 | 1062 | |
| 1063 | −static int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) | |
| 1063 | +ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags) | |
| 1064 | 1064 | { |
| 1065 | 1065 | const char *ext; |
| 1066 | 1066 | ElfW(Ehdr) ehdr; |
| @@ -926,6 +926,7 @@ ST_FUNC Sym *global_identifier_push(int v, int t, int c); · 925 unmodified lines | ||
| 926 | 926 | |
| 927 | 927 | ST_FUNC BufferedFile *tcc_open(TCCState *s1, const char *filename); |
| 928 | 928 | ST_FUNC void tcc_close(BufferedFile *bf); |
| 929 | +ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags); | |
| 929 | 930 | ST_FUNC int tcc_add_dll(TCCState *s, const char *filename, int flags); |
| 930 | 931 | PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value); |
| 931 | 932 | PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time); |