Re: [FFmpeg-devel] [PATCH] fftools: Check HAVE_GETSTDHANDLE before using GetStdHandle

2023-10-23 Thread Anton Khirnov
Quoting Martin Storsjö (2023-10-22 13:08:44) > GetStdHandle is unavailable outside of the desktop API subset. > > This didn't use to be a problem with earlier WinSDKs, as kbhit also > used to be available only for desktop apps, and this whole section is > wrapped in #if HAVE_KBHIT. With newer WinS

[FFmpeg-devel] [PATCH] fftools: Check HAVE_GETSTDHANDLE before using GetStdHandle

2023-10-22 Thread Martin Storsjö
GetStdHandle is unavailable outside of the desktop API subset. This didn't use to be a problem with earlier WinSDKs, as kbhit also used to be available only for desktop apps, and this whole section is wrapped in #if HAVE_KBHIT. With newer WinSDKs, kbhit() is available also for non-desktop apps, wh