summaryrefslogtreecommitdiffstats
path: root/osdep/io.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-05-01 21:39:19 +0200
committerKacper Michajłow <kasper93@gmail.com>2024-05-06 22:01:17 +0200
commit86abbb89a79b63e0dc64382bd7c478542a0d3682 (patch)
tree2c8265ac5dda75c73eb3187f13fb3cb461b29ee7 /osdep/io.c
parent5c2918b4f319c0d17a4b0817beb105ce7d5ed989 (diff)
downloadmpv-86abbb89a79b63e0dc64382bd7c478542a0d3682.tar.bz2
mpv-86abbb89a79b63e0dc64382bd7c478542a0d3682.tar.xz
win32: fix platform checks
Diffstat (limited to 'osdep/io.c')
-rw-r--r--osdep/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osdep/io.c b/osdep/io.c
index 0ee0c3dcfe..a58eb6ec04 100644
--- a/osdep/io.c
+++ b/osdep/io.c
@@ -62,7 +62,7 @@ bool mp_set_cloexec(int fd)
return true;
}
-#ifdef __MINGW32__
+#ifdef _WIN32
int mp_make_cloexec_pipe(int pipes[2])
{
pipes[0] = pipes[1] = -1;
@@ -82,7 +82,7 @@ int mp_make_cloexec_pipe(int pipes[2])
}
#endif
-#ifdef __MINGW32__
+#ifdef _WIN32
int mp_make_wakeup_pipe(int pipes[2])
{
return mp_make_cloexec_pipe(pipes);
@@ -104,7 +104,7 @@ int mp_make_wakeup_pipe(int pipes[2])
void mp_flush_wakeup_pipe(int pipe_end)
{
-#ifndef __MINGW32__
+#ifndef _WIN32
char buf[100];
(void)read(pipe_end, buf, sizeof(buf));
#endif
@@ -142,7 +142,7 @@ char *mp_to_utf8(void *talloc_ctx, const wchar_t *s)
#endif // _WIN32
-#ifdef __MINGW32__
+#ifdef _WIN32
#include <io.h>
#include <fcntl.h>