From f39434906647f9f8925a12a76159ffd21919467c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 4 Jun 2024 18:51:42 +0200 Subject: [PATCH] ao_pcm: fix incorrect win32 check --- audio/out/ao_pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/out/ao_pcm.c b/audio/out/ao_pcm.c index 71650c39e3..cf13c478ac 100644 --- a/audio/out/ao_pcm.c +++ b/audio/out/ao_pcm.c @@ -34,7 +34,7 @@ #include "common/msg.h" #include "osdep/endian.h" -#ifdef __MINGW32__ +#ifdef _WIN32 // for GetFileType to detect pipes #include #include @@ -172,7 +172,7 @@ static void uninit(struct ao *ao) if (priv->waveheader) { // Rewrite wave header bool broken_seek = false; -#ifdef __MINGW32__ +#ifdef _WIN32 // Windows, in its usual idiocy "emulates" seeks on pipes so it always // looks like they work. So we have to detect them brute-force. broken_seek = FILE_TYPE_DISK !=