Re: [Mingw-w64-public] [PATCH] sysinfoapi.h: Allow some functions for UWP

2018-07-07 Thread JonY via Mingw-w64-public
On 07/07/2018 09:48 PM, Martin Storsjö wrote: > From: Hugo Beauzée-Luyssen Patch series OK. signature.asc Description: OpenPGP digital signature -- Check out the vibrant tech community on one of the world's most engaging

Re: [Mingw-w64-public] [PATCH] add _mkgmtime, _mkgmtime32 to lib32 (v5 only)

2018-07-07 Thread JonY via Mingw-w64-public
On 07/07/2018 09:31 AM, Jeroen Ooms wrote: > This patch is for v5 to fix: https://sourceforge.net/p/mingw-w64/bugs/473/ > > It has been fixed in master already, but I would really like to make > this work in v5. > Patch is missing, can you resend with a .txt extension? signature.asc Descripti

[Mingw-w64-public] [PATCH] crt: Add a def file for vcruntime140_app.dll

2018-07-07 Thread Martin Storsjö
This file isn't strictly a part of windows as such, but is a redistributable runtime for MSVC 2015/2017. libucrt.a provides functions such as memcmp, and memcmp and memmove as part of api-ms-win-crt-private-l1-1-0.dll, but it is not allowed to link to that one from Windows Store apps. It is allow

[Mingw-w64-public] [PATCH] crt: Avoid using _mbslen in misc/wcsto{f, ld}.c

2018-07-07 Thread Martin Storsjö
_mbslen is not one of the allowed functions within Windows Store applications, while MultiByteToWideChar is. This matches how the same part is done within misc/mingw_wcsto{f,ld}.c. Signed-off-by: Martin Storsjö --- mingw-w64-crt/misc/wcstof.c | 4 +++- mingw-w64-crt/misc/wcstold.c | 4 +++- 2

[Mingw-w64-public] [PATCH] winstorecompat: Add stubs for Rtl functions used by the mingw-w64 crt wrapping

2018-07-07 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- mingw-w64-libraries/winstorecompat/Makefile.am | 3 ++ .../winstorecompat/src/RtlAddFunctionTable.c | 38 .../winstorecompat/src/RtlCaptureContext.c | 39 .../winstorecompat/src/RtlVirtualUnwind.c

[Mingw-w64-public] [PATCH] winreg.h: Add missing WINAPI_PARTITION_DESKTOP guard

2018-07-07 Thread Martin Storsjö
From: Hugo Beauzée-Luyssen Also update shlwapi.h since it uses some of the functions/types declared by winreg.h Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/shlwapi.h | 4 mingw-w64-headers/include/winreg.h | 5 + 2 files changed, 9 insertions(+) diff --git a/mingw-w6

[Mingw-w64-public] [PATCH] sysinfoapi.h: Allow some functions for UWP

2018-07-07 Thread Martin Storsjö
From: Hugo Beauzée-Luyssen Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/sysinfoapi.h | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/mingw-w64-headers/include/sysinfoapi.h b/mingw-w64-headers/include/sysinfoapi.h index 7d43ff5..cf5fedd 1006

[Mingw-w64-public] [PATCH] winbase.h: WaitForMultipleObjects is available on UWP

2018-07-07 Thread Martin Storsjö
From: Hugo Beauzée-Luyssen Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/winbase.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/winbase.h b/mingw-w64-headers/include/winbase.h index c865a88..fbb6b7e 100644 --- a/mingw-w64-heade

[Mingw-w64-public] [PATCH] winstorecompat: Add an implementation of EnumProcessModules

2018-07-07 Thread Martin Storsjö
This only works for the local process. This uses structs from winternl.h that, according to documentation, could change between Windows versions. While it legitimately could change, it hasn't so far (this layout works with XP to 10), and for the Windows Store subset, this seems like the most pragm

[Mingw-w64-public] [PATCH] headers: Update the _TEB struct to include the ProcessEnvironmentBlock member

2018-07-07 Thread Martin Storsjö
This has been exposed in the public windows sdk since windows 8. Signed-off-by: Martin Storsjö --- mingw-w64-headers/include/winternl.h | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mingw-w64-headers/include/winternl.h b/mingw-w64-headers/include/winternl.h in

[Mingw-w64-public] [PATCH] crt: Add missing snprintf aliases to msvcr120_app.def.in

2018-07-07 Thread Martin Storsjö
From: Hugo Beauzée-Luyssen Signed-off-by: Martin Storsjö --- mingw-w64-crt/lib32/msvcr120_app.def.in | 1 + mingw-w64-crt/lib64/msvcr120_app.def.in | 1 + 2 files changed, 2 insertions(+) diff --git a/mingw-w64-crt/lib32/msvcr120_app.def.in b/mingw-w64-crt/lib32/msvcr120_app.def.in index b29e

[Mingw-w64-public] [PATCH] crt: Split wassert.c into a separate assert.c

2018-07-07 Thread Martin Storsjö
The _wassert function is overridden in libwinstorecompat. If overriding this function within that library, we still want to be able to link only the _assert function from libmingwex. Signed-off-by: Martin Storsjö --- mingw-w64-crt/Makefile.am| 3 ++- mingw-w64-crt/misc/assert.c | 31 ++

[Mingw-w64-public] [PATCH] crt: Share libwindowsapp.a, libruntimeobject.a and libsynchronization.a between lib64, libarm32 and libarm64

2018-07-07 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- mingw-w64-crt/Makefile.am | 54 ++ .../api-ms-win-core-com-l1-1-1.def | 0 .../api-ms-win-core-com-l2-1-1.def | 0 .../api-ms-win-core-com-midlproxystub-l1-1-0.def | 0 .../api-ms-win-c

[Mingw-w64-public] [PATCH] add _mkgmtime, _mkgmtime32 to lib32 (v5 only)

2018-07-07 Thread Jeroen Ooms
This patch is for v5 to fix: https://sourceforge.net/p/mingw-w64/bugs/473/ It has been fixed in master already, but I would really like to make this work in v5. Thank you! -- Check out the vibrant tech community on one of