summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/opencl.c10
-rw-r--r--libavutil/threadmessage.c12
2 files changed, 2 insertions, 20 deletions
diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 62706f3094..160076ca2d 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -26,15 +26,7 @@
#include "log.h"
#include "avassert.h"
#include "opt.h"
-
-#if HAVE_THREADS
-#if HAVE_PTHREADS
-#include <pthread.h>
-#elif HAVE_W32THREADS
-#include "compat/w32pthreads.h"
-#elif HAVE_OS2THREADS
-#include "compat/os2threads.h"
-#endif
+#include "thread.h"
#include "atomic.h"
static pthread_mutex_t * volatile atomic_opencl_lock = NULL;
diff --git a/libavutil/threadmessage.c b/libavutil/threadmessage.c
index 3281e26285..7c5cd2463c 100644
--- a/libavutil/threadmessage.c
+++ b/libavutil/threadmessage.c
@@ -20,17 +20,7 @@
#include "fifo.h"
#include "threadmessage.h"
-#if HAVE_THREADS
-#if HAVE_PTHREADS
-#include <pthread.h>
-#elif HAVE_W32THREADS
-#include "compat/w32pthreads.h"
-#elif HAVE_OS2THREADS
-#include "compat/os2threads.h"
-#else
-#error "Unknown threads implementation"
-#endif
-#endif
+#include "thread.h"
struct AVThreadMessageQueue {
#if HAVE_THREADS