Commit 18f47a22 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Konstantin Pavlov

WinRT: Add a patch to allow SwitchToThread to be used

Signed-off-by: Konstantin Pavlov's avatarKonstantin Pavlov <thresh@videolan.org>
parent 1ffccf20
......@@ -16,6 +16,7 @@ COPY missing-snprintf.patch .
#COPY winstorecompat.patch .
COPY windowsapp.a.patch .
COPY getstartupinfo.patch .
COPY switchtothread.patch .
RUN mkdir /build && cd /build && \
mkdir $TOOLCHAIN_PREFIX && \
......@@ -32,6 +33,7 @@ RUN mkdir /build && cd /build && \
../configure --prefix=$TOOLCHAIN_PREFIX --target=$TARGET_TUPLE \
--disable-werror --disable-multilib && make -j4 && make install && \
cd /build/mingw-w64/mingw-w64-headers && mkdir build && cd build && \
git am /switchtothread.patch && \
../configure --prefix=$MINGW_PREFIX \
--host=$TARGET_TUPLE && make install && \
cd /build && \
......
From a1cbf19c2d0e9a74ae3efc5746cdbc223ead2d42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Wed, 24 Aug 2016 11:13:03 +0200
Subject: [PATCH] include: SwitchToThread is always available on Win10
---
mingw-w64-headers/include/processthreadsapi.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/mingw-w64-headers/include/processthreadsapi.h b/mingw-w64-headers/include/processthreadsapi.h
index 7e14eb9..c4629f7 100755
--- a/mingw-w64-headers/include/processthreadsapi.h
+++ b/mingw-w64-headers/include/processthreadsapi.h
@@ -167,6 +167,7 @@ WINBASEAPI WINBOOL WINAPI TerminateProcess (HANDLE hProcess, UINT uExitCode);
WINBASEAPI WINBOOL WINAPI GetExitCodeThread (HANDLE hThread, LPDWORD lpExitCode);
#if _WIN32_WINNT >= 0x0A00
WINBASEAPI DWORD WINAPI QueueUserAPC (PAPCFUNC pfnAPC, HANDLE hThread, ULONG_PTR dwData);
+ WINBASEAPI WINBOOL WINAPI SwitchToThread (VOID);
#endif
WINBASEAPI DWORD WINAPI SuspendThread (HANDLE hThread);
WINBASEAPI DWORD WINAPI ResumeThread (HANDLE hThread);
--
2.9.3
......@@ -17,6 +17,7 @@ COPY missing-snprintf.patch .
#COPY winstorecompat.patch .
COPY windowsapp.a.patch .
COPY getstartupinfo.patch .
COPY switchtothread.patch .
RUN mkdir /build && cd /build && \
mkdir $TOOLCHAIN_PREFIX && \
......@@ -31,6 +32,7 @@ RUN mkdir /build && cd /build && \
git am ../../missing-snprintf.patch && \
git am ../../windowsapp.a.patch && \
git am ../../getstartupinfo.patch && \
git am ../../switchtothread.patch && \
cd .. && \
tar xf gcc-5.3.0.tar.bz2 && \
tar xf binutils-2.26.tar.bz2 && \
......
From a1cbf19c2d0e9a74ae3efc5746cdbc223ead2d42 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Wed, 24 Aug 2016 11:13:03 +0200
Subject: [PATCH] include: SwitchToThread is always available on Win10
---
mingw-w64-headers/include/processthreadsapi.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/mingw-w64-headers/include/processthreadsapi.h b/mingw-w64-headers/include/processthreadsapi.h
index 7e14eb9..c4629f7 100755
--- a/mingw-w64-headers/include/processthreadsapi.h
+++ b/mingw-w64-headers/include/processthreadsapi.h
@@ -167,6 +167,7 @@ WINBASEAPI WINBOOL WINAPI TerminateProcess (HANDLE hProcess, UINT uExitCode);
WINBASEAPI WINBOOL WINAPI GetExitCodeThread (HANDLE hThread, LPDWORD lpExitCode);
#if _WIN32_WINNT >= 0x0A00
WINBASEAPI DWORD WINAPI QueueUserAPC (PAPCFUNC pfnAPC, HANDLE hThread, ULONG_PTR dwData);
+ WINBASEAPI WINBOOL WINAPI SwitchToThread (VOID);
#endif
WINBASEAPI DWORD WINAPI SuspendThread (HANDLE hThread);
WINBASEAPI DWORD WINAPI ResumeThread (HANDLE hThread);
--
2.9.3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment