summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
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);