[vlc-commits] [Git][videolan/vlc][master] contrib: test pthread availability for Windows even without mingw-w64
    Hugo Beauzée-Luyssen (@chouquette) 
    gitlab at videolan.org
       
    Thu Mar 10 18:04:36 UTC 2022
    
    
  
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
4acd34bc by Steve Lhomme at 2022-03-10T17:07:52+00:00
contrib: test pthread availability for Windows even without mingw-w64
If anyone has a pthread with a different Windows SDK it should work.
It will also avoid bogus pthread.h missing reports when mingw-w64 is not
detected properly. HAVE_WINPTHREAD is not checked and assumed to be
available.
- - - - -
1 changed file:
- contrib/src/main.mak
Changes:
=====================================
contrib/src/main.mak
=====================================
@@ -131,8 +131,8 @@ MINGW_W64_VERSION := $(shell echo "__MINGW64_VERSION_MAJOR" | $(CC) $(CFLAGS) -E
 ifneq ($(MINGW_W64_VERSION),)
 HAVE_MINGW_W64 := 1
 mingw_at_least = $(shell [ $(MINGW_W64_VERSION) -gt $(1) ] && echo true)
-HAVE_WINPTHREAD := $(shell $(CC) $(CFLAGS) -E -dM -include pthread.h - < /dev/null >/dev/null 2>&1 || echo FAIL)
 endif
+HAVE_WINPTHREAD := $(shell $(CC) $(CFLAGS) -E -dM -include pthread.h - < /dev/null >/dev/null 2>&1 || echo FAIL)
 ifndef HAVE_CROSS_COMPILE
 LN_S = cp -R
 endif
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4acd34bce8928ee68d4c1307bcbda172ec6e31ee
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4acd34bce8928ee68d4c1307bcbda172ec6e31ee
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
    
    
More information about the vlc-commits
mailing list