From 6d7be29632017c9776b7ac4ac5e61cbd9ce3b83a Mon Sep 17 00:00:00 2001 From: sezero Date: Sun, 19 Aug 2018 16:11:01 +0300 Subject: [PATCH] glide2x, h3, gdebug.c: fix gdbg_msgfile initializer issue with mingw. --- glide2x/h3/minihwc/gdebug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glide2x/h3/minihwc/gdebug.c b/glide2x/h3/minihwc/gdebug.c index 56097fa..1e81693 100644 --- a/glide2x/h3/minihwc/gdebug.c +++ b/glide2x/h3/minihwc/gdebug.c @@ -94,7 +94,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; // GDBG info/error file @@ -167,6 +167,8 @@ gdbg_init(void) #ifdef __linux__ gdbg_msgfile = stderr; // GDBG info/error file +#elif defined(__MINGW32__) + gdbg_msgfile = stdout; #endif #ifdef KERNEL