h3, h5, gdebug.c: fix gdbg_msgfile initializer issue with mingw.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user