From acac35c12597eb678c4a0866f79a6aeb9171dd09 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 1 Oct 2016 20:46:16 +0200 Subject: libtcc: filetype cleanup - does not change signature of tcc_add_file --- tccelf.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index c4f0833..d47027b 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1573,8 +1573,7 @@ static int tcc_add_support(TCCState *s1, const char *filename) "C67" #endif ,filename); - - return tcc_add_file(s1, buf, TCC_FILETYPE_BINARY); + return tcc_add_file(s1, buf); } ST_FUNC void tcc_add_bcheck(TCCState *s1) @@ -1624,7 +1623,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1) tcc_add_library(s1, "c"); #ifdef CONFIG_USE_LIBGCC if (!s1->static_link) { - tcc_add_file(s1, TCC_LIBGCC, TCC_FILETYPE_BINARY); + tcc_add_file(s1, TCC_LIBGCC); } #endif tcc_add_support(s1, "libtcc1.a"); @@ -3385,7 +3384,7 @@ static int ld_add_file(TCCState *s1, const char filename[]) { int ret; - ret = tcc_add_file_internal(s1, filename, 0, TCC_FILETYPE_BINARY); + ret = tcc_add_file_internal(s1, filename, AFF_TYPE_BIN); if (ret) ret = tcc_add_dll(s1, filename, 0); return ret; -- cgit v1.3.1