diff --git a/src/writelog.c b/src/writelog.c index 9e533ee..a4fb5de 100644 --- a/src/writelog.c +++ b/src/writelog.c @@ -39,15 +39,17 @@ void set_logfile (const char *logfile_name) } } -int log_quiet = 0; - void write_log (const char *fmt, ...) { va_list ap; va_start (ap, fmt); -#ifdef HAVE_VFPRINTF + +#ifdef GEKKO + extern int log_quiet; if (!log_quiet) - vfprintf (logfile ? logfile : stderr, fmt, ap); +#endif +#ifdef HAVE_VFPRINTF + vfprintf (logfile ? logfile : stderr, fmt, ap); #else /* Technique stolen from GCC. */ {