summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-12-25 23:17:23 -0300
committerJames Almer <jamrial@gmail.com>2017-12-25 23:17:56 -0300
commit613f789c19153edadb1fcc11866192f6b296ee58 (patch)
tree15d7f65e0ceb09a80cceabc35c04fad29249e36d /compat
parentcf57cb3ae4364ab8e70af37beea7a45a86de90e9 (diff)
downloadffmpeg-streaming-613f789c19153edadb1fcc11866192f6b296ee58.zip
ffmpeg-streaming-613f789c19153edadb1fcc11866192f6b296ee58.tar.gz
w32pthreads: remove some remaining superfluous checks
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/w32pthreads.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h
index 237cab5..21acfd2 100644
--- a/compat/w32pthreads.h
+++ b/compat/w32pthreads.h
@@ -39,11 +39,6 @@
#include <windows.h>
#include <process.h>
-#if _WIN32_WINNT < 0x0600 && defined(__MINGW32__)
-#undef MemoryBarrier
-#define MemoryBarrier __sync_synchronize
-#endif
-
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
@@ -63,10 +58,8 @@ typedef CONDITION_VARIABLE pthread_cond_t;
#define PTHREAD_MUTEX_INITIALIZER SRWLOCK_INIT
#define PTHREAD_COND_INITIALIZER CONDITION_VARIABLE_INIT
-#if _WIN32_WINNT >= 0x0600
#define InitializeCriticalSection(x) InitializeCriticalSectionEx(x, 0, 0)
#define WaitForSingleObject(a, b) WaitForSingleObjectEx(a, b, FALSE)
-#endif
static av_unused unsigned __stdcall attribute_align_arg win32thread_worker(void *arg)
{
OpenPOWER on IntegriCloud