diff options
Diffstat (limited to '')
-rw-r--r-- | src/myfprintf.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/myfprintf.h b/src/myfprintf.h index 4147e7ac0..fe918a101 100644 --- a/src/myfprintf.h +++ b/src/myfprintf.h @@ -20,12 +20,20 @@ #define MYFPRINTF_H #include "../config.h" +#include "gcc.h" +#include <stdarg.h> #include <stdio.h> void myfprintfStdLogMode(FILE * out, FILE * err); -void myfprintf(FILE * fp, char *format, ...); +mpd_fprintf void fdprintf(const int fd, const char *fmt, ...); +void vfdprintf(const int fd, const char *fmt, va_list arglist); + +#define myfprintf(fp, ...) do { \ + fprintf(fp, __VA_ARGS__); \ + fflush(fp); \ + } while (0) int myfprintfCloseAndOpenLogFile(); |