[FFmpeg-cvslog] configure: Use headers in the check for _beginthreadex for w32threads

Martin Storsjö git at videolan.org
Sat Dec 1 13:18:37 CET 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Nov 30 16:57:02 2012 +0200| [3bbe63d1a45853c6b760f1ea9551668568bff7ee] | committer: Martin Storsjö

configure: Use headers in the check for _beginthreadex for w32threads

When targeting the metro API subset, this function still exists in
the link libraries, but is excluded from the headers. This makes
sure w32threads is automatically disabled when targeting this API
subset (since not all the necessary functions for it are available).

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3bbe63d1a45853c6b760f1ea9551668568bff7ee
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 38f49e0..02dd1c6 100755
--- a/configure
+++ b/configure
@@ -3332,7 +3332,7 @@ disabled  zlib || check_lib   zlib.h      zlibVersion -lz   || disable  zlib
 disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
 
 if ! disabled w32threads && ! enabled pthreads; then
-    check_func _beginthreadex && enable w32threads
+    check_func_headers "windows.h process.h" _beginthreadex && enable w32threads
 fi
 
 # check for some common methods of building with pthread support



More information about the ffmpeg-cvslog mailing list