Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
docker-images
Commits
422a28ba
Commit
422a28ba
authored
Apr 25, 2016
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winrt: Remove unneeded patch
It has been applied upstream
parent
16b0096c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
182 deletions
+0
-182
vlc-winrt/toolchain-i686/Dockerfile
vlc-winrt/toolchain-i686/Dockerfile
+0
-3
vlc-winrt/toolchain-i686/beginthread.patch
vlc-winrt/toolchain-i686/beginthread.patch
+0
-88
vlc-winrt/toolchain-x86_64/Dockerfile
vlc-winrt/toolchain-x86_64/Dockerfile
+0
-3
vlc-winrt/toolchain-x86_64/beginthread.patch
vlc-winrt/toolchain-x86_64/beginthread.patch
+0
-88
No files found.
vlc-winrt/toolchain-i686/Dockerfile
View file @
422a28ba
...
...
@@ -12,8 +12,6 @@ ENV TOOLCHAIN_PREFIX=/opt/gcc-$TARGET_TUPLE
ENV
MINGW_PREFIX=$TOOLCHAIN_PREFIX/$TARGET_TUPLE
ENV
PATH=$TOOLCHAIN_PREFIX/bin:$PATH
COPY
beginthread.patch .
RUN
mkdir
/build
&&
cd
/build
&&
\
mkdir
$TOOLCHAIN_PREFIX
&&
\
mkdir
$MINGW_PREFIX
&&
\
...
...
@@ -23,7 +21,6 @@ RUN mkdir /build && cd /build && \
git config
--global
user.name
"VideoLAN Buildbot"
&&
\
git config
--global
user.email buildbot@videolan.org
&&
\
git clone
--depth
=
1 git://git.code.sf.net/p/mingw-w64/mingw-w64
&&
\
cd
mingw-w64 git am ../beginthread.patch
&&
cd
..
&&
\
tar
xf gcc-5.3.0.tar.bz2
&&
\
tar
xf binutils-2.26.tar.bz2
&&
\
cd
binutils-2.26
&&
mkdir
build
&&
cd
build
&&
\
...
...
vlc-winrt/toolchain-i686/beginthread.patch
deleted
100644 → 0
View file @
16b0096c
From 6dd2dfd3ca775c9fb67770ba254aefdd311eaead Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Wed, 13 Apr 2016 14:46:54 +0200
Subject: [PATCH] _begin/endthread(ex) are not allowed on winrt
Provide a redirection from _beginthreadex -> CreateThread _endthread ->
ExitThread, as the documentation recommends.
---
mingw-w64-libraries/winstorecompat/Makefile.am | 1 +
.../winstorecompat/src/beginthread.c | 54 ++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 mingw-w64-libraries/winstorecompat/src/beginthread.c
diff --git a/mingw-w64-libraries/winstorecompat/Makefile.am b/mingw-w64-libraries/winstorecompat/Makefile.am
index dee6f20..332cae5 100644
--- a/mingw-w64-libraries/winstorecompat/Makefile.am
+++ b/mingw-w64-libraries/winstorecompat/Makefile.am
@@ -6,6 +6,7 @@
lib_LIBRARIES = libwinstorecompat.a
libwinstorecompat_a_SOURCES = \
src/_wassert.c \
+ src/beginthread.c \
src/GetModuleHandle.c \
src/CreateEventW.c \
src/CreateMutexW.c \
diff --git a/mingw-w64-libraries/winstorecompat/src/beginthread.c b/mingw-w64-libraries/winstorecompat/src/beginthread.c
new file mode 100644
index 0000000..bae4a6a
--- /dev/null
+++ b/mingw-w64-libraries/winstorecompat/src/beginthread.c
@@ -0,0 +1,54 @@
+/*
+ Copyright (c) 2016 mingw-w64 project
+
+ Contributing authors: Hugo Beauzée-Luyssen
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+*/
+
+#define _WIN32_WINNT 0x501
+
+#define _beginthreadex ___beginthreadex
+#define _endthreadex ___endthreadex
+#include <windef.h>
+#include <winbase.h>
+#include <processthreadsapi.h>
+#undef _endthreadex
+#undef _beginthreadex
+
+uintptr_t __cdecl _beginthreadex(void *_Security, unsigned _StackSize,
+ unsigned (__stdcall *_StartAddress) (void *),
+ void *_ArgList,unsigned _InitFlag,unsigned *_ThrdAddr)
+{
+ return (uintptr_t)CreateThread(_Security, _StackSize, (LPTHREAD_START_ROUTINE)_StartAddress,
+ _ArgList, _InitFlag, (LPDWORD)_ThrdAddr);
+}
+
+void __cdecl _endthreadex(unsigned _Retval)
+{
+ ExitThread(_Retval);
+}
+
+#ifndef _WIN64
+uintptr_t (__cdecl *__MINGW_IMP_SYMBOL(_beginthreadex))(void*, unsigned, unsigned (__stdcall *)(void *), void *,unsigned, unsigned*) asm("__imp___beginthreadex") = _beginthreadex;
+void (__cdecl *__MINGW_IMP_SYMBOL(_endthreadex))(unsigned) asm("__imp___endthreadex") = _endthreadex;
+#else
+void (__cdecl *__MINGW_IMP_SYMBOL(_beginthreadex))(void*, unsigned, unsigned (__stdcall *)(void *), void *,unsigned, unsigned*) asm("__imp__beginthreadex") = _beginthreadex;
+void (__cdecl *__MINGW_IMP_SYMBOL(_endthreadex))(unsigned) asm("__imp__endthreadex") = _endthreadex;
+#endif
--
2.8.0.rc3
vlc-winrt/toolchain-x86_64/Dockerfile
View file @
422a28ba
...
...
@@ -12,8 +12,6 @@ ENV TOOLCHAIN_PREFIX=/opt/gcc-$TARGET_TUPLE
ENV
MINGW_PREFIX=$TOOLCHAIN_PREFIX/$TARGET_TUPLE
ENV
PATH=$TOOLCHAIN_PREFIX/bin:$PATH
COPY
beginthread.patch .
RUN
mkdir
/build
&&
cd
/build
&&
\
mkdir
$TOOLCHAIN_PREFIX
&&
\
mkdir
$MINGW_PREFIX
&&
\
...
...
@@ -23,7 +21,6 @@ RUN mkdir /build && cd /build && \
git config
--global
user.name
"VideoLAN Buildbot"
&&
\
git config
--global
user.email buildbot@videolan.org
&&
\
git clone
--depth
=
1 git://git.code.sf.net/p/mingw-w64/mingw-w64
&&
\
cd
mingw-w64 git am ../beginthread.patch
&&
cd
..
&&
\
tar
xf gcc-5.3.0.tar.bz2
&&
\
tar
xf binutils-2.26.tar.bz2
&&
\
cd
binutils-2.26
&&
mkdir
build
&&
cd
build
&&
\
...
...
vlc-winrt/toolchain-x86_64/beginthread.patch
deleted
100644 → 0
View file @
16b0096c
From 6dd2dfd3ca775c9fb67770ba254aefdd311eaead Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Wed, 13 Apr 2016 14:46:54 +0200
Subject: [PATCH] _begin/endthread(ex) are not allowed on winrt
Provide a redirection from _beginthreadex -> CreateThread _endthread ->
ExitThread, as the documentation recommends.
---
mingw-w64-libraries/winstorecompat/Makefile.am | 1 +
.../winstorecompat/src/beginthread.c | 54 ++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 mingw-w64-libraries/winstorecompat/src/beginthread.c
diff --git a/mingw-w64-libraries/winstorecompat/Makefile.am b/mingw-w64-libraries/winstorecompat/Makefile.am
index dee6f20..332cae5 100644
--- a/mingw-w64-libraries/winstorecompat/Makefile.am
+++ b/mingw-w64-libraries/winstorecompat/Makefile.am
@@ -6,6 +6,7 @@
lib_LIBRARIES = libwinstorecompat.a
libwinstorecompat_a_SOURCES = \
src/_wassert.c \
+ src/beginthread.c \
src/GetModuleHandle.c \
src/CreateEventW.c \
src/CreateMutexW.c \
diff --git a/mingw-w64-libraries/winstorecompat/src/beginthread.c b/mingw-w64-libraries/winstorecompat/src/beginthread.c
new file mode 100644
index 0000000..bae4a6a
--- /dev/null
+++ b/mingw-w64-libraries/winstorecompat/src/beginthread.c
@@ -0,0 +1,54 @@
+/*
+ Copyright (c) 2016 mingw-w64 project
+
+ Contributing authors: Hugo Beauzée-Luyssen
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+*/
+
+#define _WIN32_WINNT 0x501
+
+#define _beginthreadex ___beginthreadex
+#define _endthreadex ___endthreadex
+#include <windef.h>
+#include <winbase.h>
+#include <processthreadsapi.h>
+#undef _endthreadex
+#undef _beginthreadex
+
+uintptr_t __cdecl _beginthreadex(void *_Security, unsigned _StackSize,
+ unsigned (__stdcall *_StartAddress) (void *),
+ void *_ArgList,unsigned _InitFlag,unsigned *_ThrdAddr)
+{
+ return (uintptr_t)CreateThread(_Security, _StackSize, (LPTHREAD_START_ROUTINE)_StartAddress,
+ _ArgList, _InitFlag, (LPDWORD)_ThrdAddr);
+}
+
+void __cdecl _endthreadex(unsigned _Retval)
+{
+ ExitThread(_Retval);
+}
+
+#ifndef _WIN64
+uintptr_t (__cdecl *__MINGW_IMP_SYMBOL(_beginthreadex))(void*, unsigned, unsigned (__stdcall *)(void *), void *,unsigned, unsigned*) asm("__imp___beginthreadex") = _beginthreadex;
+void (__cdecl *__MINGW_IMP_SYMBOL(_endthreadex))(unsigned) asm("__imp___endthreadex") = _endthreadex;
+#else
+void (__cdecl *__MINGW_IMP_SYMBOL(_beginthreadex))(void*, unsigned, unsigned (__stdcall *)(void *), void *,unsigned, unsigned*) asm("__imp__beginthreadex") = _beginthreadex;
+void (__cdecl *__MINGW_IMP_SYMBOL(_endthreadex))(unsigned) asm("__imp__endthreadex") = _endthreadex;
+#endif
--
2.8.0.rc3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment