diff --git a/glide3x/h3/minihwc/gdebug.c b/glide3x/h3/minihwc/gdebug.c index b685196..2efe1a6 100644 --- a/glide3x/h3/minihwc/gdebug.c +++ b/glide3x/h3/minihwc/gdebug.c @@ -91,7 +91,7 @@ extern int __cdecl klvfprintf(FILE *stream, static FILE *gdbg_msgfile; // GDBG info/error file #else /* #ifdef KERNEL */ -#ifndef __linux__ +#if !defined(__linux__) && !defined(__MINGW32__) static FILE *gdbg_msgfile = stdout; // GDBG info/error file #else static FILE *gdbg_msgfile; @@ -170,6 +170,8 @@ gdbg_init(void) #ifdef __linux__ gdbg_msgfile = stderr; +#elif defined(__MINGW32__) + gdbg_msgfile = stdout; #endif #ifdef KERNEL diff --git a/glide3x/h5/minihwc/gdebug.c b/glide3x/h5/minihwc/gdebug.c index cd81f02..07a9925 100644 --- a/glide3x/h5/minihwc/gdebug.c +++ b/glide3x/h5/minihwc/gdebug.c @@ -207,7 +207,7 @@ gdbg_init(void) SIOUXSettings.asktosaveonclose = false; #endif -#if defined(__linux__) || defined(__FreeBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__MINGW32__) gdbg_msgfile = INITIAL_GDBG_MSGFILE; #endif