summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub2
-rw-r--r--win32/config.status.in2
-rw-r--r--win32/win32.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index f8ebcd7..36df32c 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -29,7 +29,7 @@ AUTOCONF = autoconf
prefix = /usr
-CFLAGS = -nologo -DNT=1 -Zi -O2b2x -G5
+CFLAGS = -nologo -DNT=1 -Zi -MD -O2b2x -G5
CPPFLAGS = -I$(srcdir) -I$(srcdir)/missing
LDFLAGS = $(CFLAGS) -Fm
XLDFLAGS =
diff --git a/win32/config.status.in b/win32/config.status.in
index 2b81802..f363658 100644
--- a/win32/config.status.in
+++ b/win32/config.status.in
@@ -1,5 +1,5 @@
s%@SHELL@%%g
-s%@CFLAGS@%-nologo -DNT=1 -Zi -O2b2x -G5%g
+s%@CFLAGS@%-nologo -DNT=1 -Zi -MD -O2b2x -G5%g
s%@CPPFLAGS@%%g
s%@CXXFLAGS@%%g
s%@FFLAGS@%%g
diff --git a/win32/win32.c b/win32/win32.c
index e2799ee..22f3af9 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -1767,7 +1767,7 @@ myfddup (int fd)
void
myfdclose(FILE *fp)
{
-#if !defined __MINGW32__
+#if !defined MSVCRT_THREADS
_free_osfhnd(fileno(fp));
#endif
fclose(fp);