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
|
static FILE *gdbg_msgfile; // GDBG info/error file
|
||||||
#else /* #ifdef KERNEL */
|
#else /* #ifdef KERNEL */
|
||||||
|
|
||||||
#ifndef __linux__
|
#if !defined(__linux__) && !defined(__MINGW32__)
|
||||||
static FILE *gdbg_msgfile = stdout; // GDBG info/error file
|
static FILE *gdbg_msgfile = stdout; // GDBG info/error file
|
||||||
#else
|
#else
|
||||||
static FILE *gdbg_msgfile;
|
static FILE *gdbg_msgfile;
|
||||||
@@ -170,6 +170,8 @@ gdbg_init(void)
|
|||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
gdbg_msgfile = stderr;
|
gdbg_msgfile = stderr;
|
||||||
|
#elif defined(__MINGW32__)
|
||||||
|
gdbg_msgfile = stdout;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KERNEL
|
#ifdef KERNEL
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ gdbg_init(void)
|
|||||||
SIOUXSettings.asktosaveonclose = false;
|
SIOUXSettings.asktosaveonclose = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__FreeBSD__)
|
#if defined(__linux__) || defined(__FreeBSD__) || defined(__MINGW32__)
|
||||||
gdbg_msgfile = INITIAL_GDBG_MSGFILE;
|
gdbg_msgfile = INITIAL_GDBG_MSGFILE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user