Mercurial > hg > th-libs
changeset 239:10f596441e75
Silence unused function warning when not using internal implementations.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Feb 2016 16:01:32 +0200 |
parents | d3ab9d263409 |
children | 5e781dba6136 |
files | th_string.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/th_string.c Tue Feb 16 16:01:15 2016 +0200 +++ b/th_string.c Tue Feb 16 16:01:32 2016 +0200 @@ -319,6 +319,7 @@ } +#ifdef TH_USE_INTERNAL_SPRINTF typedef struct { char *buf; @@ -336,6 +337,13 @@ } +static int th_stdio_vputch(void *ctx, const char ch) +{ + return fputc(ch, (FILE *) ctx); +} +#endif + + int th_vsnprintf(char *buf, size_t size, const char *fmt, va_list ap) { #ifdef TH_USE_INTERNAL_SPRINTF @@ -366,12 +374,6 @@ } -static int th_stdio_vputch(void *ctx, const char ch) -{ - return fputc(ch, (FILE *) ctx); -} - - int th_vfprintf(FILE *fh, const char *fmt, va_list ap) { #ifdef TH_USE_INTERNAL_SPRINTF