mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-25 12:06:55 +01:00
More order with log_quiet and ifdef GEKKO
This commit is contained in:
parent
ee727e3dfb
commit
ca4787e8b8
@ -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. */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user