shithub: dav1d

Download patch

ref: 11e93ea529505507f325b392840ddbcbc6836873
parent: 98fb45e08687e407f343f575e7d0dcf9fb72746e
author: Hugo Beauzée-Luyssen <[email protected]>
date: Thu Sep 27 05:49:03 EDT 2018

Remove HAVE_PTHREAD_H config macro

Since we don't want to probe for winpthreads anymore, this macro isn't
usefull anymore

--- a/meson.build
+++ b/meson.build
@@ -37,9 +37,6 @@
 else
     thread_dependency = cc.find_library('pthread', required: false)
 endif
-if thread_dependency.found()
-    cdata.set('HAVE_PTHREAD_H', 1)
-endif
 
 dav1d_inc_dirs = include_directories(['include', 'include/dav1d'])
 
--- a/src/thread.h
+++ b/src/thread.h
@@ -28,7 +28,7 @@
 #ifndef __DAV1D_THREAD_H__
 # define __DAV1D_THREAD_H__
 
-#if defined(_WIN32) && !defined(HAVE_PTHREAD_H)
+#if defined(_WIN32)
 
 #include <windows.h>
 
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -27,7 +27,7 @@
 
 #include "config.h"
 
-#if defined(_WIN32) && !defined(HAVE_PTHREAD_H)
+#if defined(_WIN32)
 
 #include <windows.h>
 #include <process.h>