Fix 'unused function' warning on non-macOS targets
This commit is contained in:
parent
46bf3f940c
commit
ecb384ac0c
1 changed files with 2 additions and 0 deletions
2
libtcc.c
2
libtcc.c
|
|
@ -855,6 +855,7 @@ LIBTCCAPI void tcc_delete(TCCState *s1)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TCC_TARGET_MACHO
|
||||||
/* Looks for the active developer SDK set by xcode-select (or the default
|
/* Looks for the active developer SDK set by xcode-select (or the default
|
||||||
one set during installation.) */
|
one set during installation.) */
|
||||||
#define SZPAIR(s) s "", sizeof(s)-1
|
#define SZPAIR(s) s "", sizeof(s)-1
|
||||||
|
|
@ -885,6 +886,7 @@ ST_FUNC int tcc_add_macos_sdkpath(TCCState* s)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#undef SZPAIR
|
#undef SZPAIR
|
||||||
|
#endif
|
||||||
|
|
||||||
LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
|
LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue