More order with log_quiet and ifdef GEKKO

This commit is contained in:
fabio.olimpieri 2014-01-27 12:39:23 +00:00
parent ee727e3dfb
commit ca4787e8b8

View File

@ -39,15 +39,17 @@ void set_logfile (const char *logfile_name)
} }
} }
int log_quiet = 0;
void write_log (const char *fmt, ...) void write_log (const char *fmt, ...)
{ {
va_list ap; va_list ap;
va_start (ap, fmt); va_start (ap, fmt);
#ifdef HAVE_VFPRINTF
#ifdef GEKKO
extern int log_quiet;
if (!log_quiet) if (!log_quiet)
vfprintf (logfile ? logfile : stderr, fmt, ap); #endif
#ifdef HAVE_VFPRINTF
vfprintf (logfile ? logfile : stderr, fmt, ap);
#else #else
/* Technique stolen from GCC. */ /* Technique stolen from GCC. */
{ {