fix to allow build tcc by build-tcc.bat

move call to print_defines() from tcc.c to the libtcc.c
    define a print_defines() as a ST_FUNC
This commit is contained in:
seyko
2015-03-19 08:07:35 +03:00
parent aa812e8745
commit e2650608cd
4 changed files with 4 additions and 4 deletions

View File

@ -1338,6 +1338,8 @@ LIBTCCAPI int tcc_add_symbol(TCCState *s, const char *name, const void *val)
LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
{
s->output_type = output_type;
if (output_type == TCC_OUTPUT_PREPROCESS)
print_defines();
if (!s->nostdinc) {
/* default include paths */