[Support] fix mingw-w64 build
authorIlya Biryukov <ibiryukov@google.com>
Wed, 6 Nov 2019 13:25:33 +0000 (14:25 +0100)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 6 Nov 2019 14:18:58 +0000 (15:18 +0100)
commit3e54404c71564d9c684742439f178f07f1e45a70
treee327fcb64736bbae70fe84c8c0fe1e7b3c25cf96
parenteabd405e665e24e00dc71c90baa196c38cd15f12
[Support] fix mingw-w64 build

Older versions of Mingw-w64 do not define _beginthreadex_proc_type,
so we replace it with `unsigned (__stdcall *ThreadFunc)(void *)`.

Fixes https://github.com/clangd/clangd/issues/188

Patch by lh123!

Differential Revision: https://reviews.llvm.org/D69879
llvm/lib/Support/Windows/Threading.inc