w32threads: Don't use function pointers when linking directly to newer APIs
authorMartin Storsjö <martin@martin.st>
Tue, 27 Aug 2013 11:48:56 +0000 (14:48 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 27 Aug 2013 20:12:28 +0000 (23:12 +0300)
commit4332bf98dc051fd1ffbd9d4ddc1c5e55790c96f1
tree6bed4f6a6dfac184f4ed5b609bf670cbb1006c53
parent310cc4bf82824f09bdd0b9147ed725cdbeaf9bdd
w32threads: Don't use function pointers when linking directly to newer APIs

This reduces the call overhead slightly. More noticeably, it
restores the earlier (unintended?) feature that condition variable
functions work just fine even if w32thread_init() hasn't been called.
This was broken as a side effect of 4622f11f9, if explicitly targeting
Vista+.

This makes w32threading work in VP8 again, if targeting Vista+.

Signed-off-by: Martin Storsjö <martin@martin.st>
compat/w32pthreads.h