h3, h5, gdebug.c: fix gdbg_msgfile initializer issue with mingw.

This commit is contained in:
sezero
2018-08-11 00:28:15 +03:00
parent ccbd5a7b41
commit ca1e7fd506
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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