ao_pcm: fix incorrect win32 check

This commit is contained in:
Kacper Michajłow 2024-06-04 18:51:42 +02:00
parent f40b569426
commit f394349066
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
#include "common/msg.h" #include "common/msg.h"
#include "osdep/endian.h" #include "osdep/endian.h"
#ifdef __MINGW32__ #ifdef _WIN32
// for GetFileType to detect pipes // for GetFileType to detect pipes
#include <windows.h> #include <windows.h>
#include <io.h> #include <io.h>
@ -172,7 +172,7 @@ static void uninit(struct ao *ao)
if (priv->waveheader) { // Rewrite wave header if (priv->waveheader) { // Rewrite wave header
bool broken_seek = false; bool broken_seek = false;
#ifdef __MINGW32__ #ifdef _WIN32
// Windows, in its usual idiocy "emulates" seeks on pipes so it always // Windows, in its usual idiocy "emulates" seeks on pipes so it always
// looks like they work. So we have to detect them brute-force. // looks like they work. So we have to detect them brute-force.
broken_seek = FILE_TYPE_DISK != broken_seek = FILE_TYPE_DISK !=