changeset 34148:61e3181426d8

Always define HAVE_PTHREADS and HAVE_W32THREADS. This fixes a warning when compiling FFmpeg's pthreads.c: libavcodec/pthread.c:914:5: warning: "HAVE_W32THREADS" is not defined Possibly fixes compilation on some win32 systems.
author cehoyos
date Sat, 22 Oct 2011 00:17:28 +0000
parents 6e798fce4fc1
children 11d9ef2177ec
files configure
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Oct 21 23:15:33 2011 +0000
+++ b/configure	Sat Oct 22 00:17:28 2011 +0000
@@ -3554,6 +3554,8 @@
 
 
 def_threads='#define HAVE_THREADS 0'
+def_pthreads='#define HAVE_PTHREADS 0'
+def_w32threads='#define HAVE_W32THREADS 0'
 
 echocheck "pthread"
 if linux ; then
@@ -3606,7 +3608,7 @@
   _w32threads=no
   mingw32 && _w32threads=yes
 fi
-test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1'
+test "$_w32threads" = yes && def_threads='#define HAVE_THREADS 1' && def_w32threads='#define HAVE_W32THREADS 1'
 echores "$_w32threads"
 
 echocheck "rpath"
@@ -8529,6 +8531,7 @@
 $def_trunc
 $def_truncf
 $def_vf_lavfi
+$def_w32threads
 $def_xform_asm
 $def_xmm_clobbers
 $def_yasm