Unified · Split
| @@ -2447,7 +2447,6 @@ case $target_os in · 2446 unmodified lines | ||
| 2447 | 2447 | disable network |
| 2448 | 2448 | else |
| 2449 | 2449 | target_os=mingw32 |
| 2450 | − enable_weak w32threads | |
| 2451 | 2450 | fi |
| 2452 | 2451 | LIBTARGET=i386 |
| 2453 | 2452 | if enabled x86_64; then |
| @@ -2852,6 +2851,10 @@ check_struct dxva2api.h DXVA_PictureParameters wDecodedPictureIndex · 398 unmodified lines | ||
| 2852 | 2851 | disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib |
| 2853 | 2852 | disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib |
| 2854 | 2853 | |
| 2854 | +if ! disabled w32threads && ! enabled pthreads; then | |
| 2855 | + check_func _beginthreadex && enable w32threads | |
| 2856 | +fi | |
| 2857 | + | |
| 2855 | 2858 | # check for some common methods of building with pthread support |
| 2856 | 2859 | # do this before the optional library checks as some of them require pthreads |
| 2857 | 2860 | if ! disabled pthreads && ! enabled w32threads; then |