summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-12-05 19:13:40 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-12-05 19:13:40 +0300
commit03a3bc680c4bd67e4cd047d2c277fd9fc4db968c (patch)
treef70539bf7872b1ffdb8dddf0115e764c496de9a9
parent605d98388966788ad535d7bbd948baf62affa50a (diff)
downloadbdwgc-03a3bc680c4bd67e4cd047d2c277fd9fc4db968c.tar.gz
Fix missing write() declaration if CONSOLE_LOG (Watcom)
* misc.c [CONSOLE_LOG && MSWIN32]: Include io.h unless __GNUC__ (regardless of _MSC_VER).
-rw-r--r--misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 2ef86cf2..f6c773e8 100644
--- a/misc.c
+++ b/misc.c
@@ -35,7 +35,7 @@
# include <sys/stat.h>
#endif
-#if defined(CONSOLE_LOG) && defined(MSWIN32) && defined(_MSC_VER)
+#if defined(CONSOLE_LOG) && defined(MSWIN32) && !defined(__GNUC__)
# include <io.h>
#endif