[FFmpeg-devel] [PATCH v2] w32pthreads: always use Vista+ API, drop XP support

wm4 nfxjfg at googlemail.com
Sat Dec 23 00:25:30 EET 2017


On Fri, 22 Dec 2017 23:17:21 +0100
wm4 <nfxjfg at googlemail.com> wrote:

> This removes the XP compatibility code, and switches entirely to SWR
> locks, which are available starting at Windows Vista.
> 
> This removes CRITICAL_SECTION use, which allows us to add
> PTHREAD_MUTEX_INITIALIZER, which will be useful later.
> 
> Windows XP is hereby not a supported build target anymore. It was
> decided in a project vote that this is OK. (Technically, it could still
> be built for Windows XP using an external pthread lib as of this
> commit.)
> 
> Windows Vista adds WSAPoll(), and for some reason struct pollfd. Since
> we raise the Windows API level globally when enabling w32threads, we
> need to move it before configure checks for struct pollfd to avoid that
> the compatibility ifdef mess redefines it.

Whoops, and commit message updated locally by removing the last
paragraph.


More information about the ffmpeg-devel mailing list