mirror of
https://github.com/mirror/tinycc.git
synced 2025-03-04 08:20:12 +08:00
Don't mix code and declaration
This commit is contained in:
parent
a3578379fb
commit
15182d7fdd
2
tccelf.c
2
tccelf.c
@ -1320,8 +1320,8 @@ static void add_init_array_defines(TCCState *s1, const char *section_name)
|
|||||||
#ifndef TCC_TARGET_PE
|
#ifndef TCC_TARGET_PE
|
||||||
static int tcc_add_support(TCCState *s1, const char *filename)
|
static int tcc_add_support(TCCState *s1, const char *filename)
|
||||||
{
|
{
|
||||||
if (!filename || strlen(filename)==0) return 0;
|
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
if (!filename || strlen(filename)==0) return 0;
|
||||||
snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);
|
snprintf(buf, sizeof(buf), "%s/%s", s1->tcc_lib_path, filename);
|
||||||
return tcc_add_file(s1, buf);
|
return tcc_add_file(s1, buf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user