Re: [Mingw-w64-public] [PATCH 1/5] headers: allow blocking some C runtime APIs in winstore builds

2020-04-16 Thread Martin Storsjö
On Thu, 16 Apr 2020, Steve Lhomme wrote: Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 The documentation is old and may not apply to Win10 but it's still

Re: [Mingw-w64-public] [PATCH] headers: make Mingw-w64 pass -Wstrict-prototypes.

2020-04-16 Thread Liu Hao
在 2020/4/16 23:23, Jehan Pagès 写道: > > Any pointer of what I could tell them? Wouldn't they just tell me that > the warnings are still right (prototypes are not proper, I guess). > Are you saying there could be a possibility for the headers to be placed > somewhere else and still be referenced as

Re: [Mingw-w64-public] [PATCH] headers: Move some symbols to correct locations, remove duplicated symbols in mfidl.idl.

2020-04-16 Thread Liu Hao
在 2020/4/16 23:04, Nikolay Sivov 写道: > Signed-off-by: Nikolay Sivov > --- > > Duplicates already exist in wmcontainer.idl, which isn't and shouldn't be > imported from any other headers. > > mingw-w64-headers/include/mfapi.h | 16 + > mingw-w64-headers/include/mfidl.idl |

Re: [Mingw-w64-public] [PATCH] crt: add more DLLs to windowsapp

2020-04-16 Thread Liu Hao
在 2020/4/16 22:18, Steve Lhomme 写道: > There are many DLLs with their API entries listed by MS that were no linkable > yet using -lwindowsapp as recommended for apps the can run on all types of > devices. > > https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis > --- > This patch causes

Re: [Mingw-w64-public] [PATCH] headers: make Mingw-w64 pass -Wstrict-prototypes.

2020-04-16 Thread Jehan Pagès
Hi! On Thu, Apr 16, 2020 at 4:14 PM Liu Hao wrote: > 在 2020/4/15 22:03, Jehan Pagès 写道: > > Hi! > > > > > > > > Ok well I have also reported a patch upstream to json-c to disable this > > warning/error when building for Windows: > > https://github.com/json-c/json-c/pull/581 > > > > But ideally w

[Mingw-w64-public] [PATCH] headers: Move some symbols to correct locations, remove duplicated symbols in mfidl.idl.

2020-04-16 Thread Nikolay Sivov
Signed-off-by: Nikolay Sivov --- Duplicates already exist in wmcontainer.idl, which isn't and shouldn't be imported from any other headers. mingw-w64-headers/include/mfapi.h | 16 + mingw-w64-headers/include/mfidl.idl | 43 --- mingw-w64-headers/includ

Re: [Mingw-w64-public] [PATCH] Add the IApplicationData2 storage interface

2020-04-16 Thread Liu Hao
在 2020/4/10 22:11, Jacek Caban 写道: > Hi Steve, > > Yeah, winrt IDLs in mingw-w64 are a mess right now. They are invalid and > they required hacked widl version to generate. Long term solution is > finishing winrt support in upstream widl (I did some work on that, but > more is needed) and rewrite

Re: [Mingw-w64-public] [resend PATCH] headers: Cleanup some typedefs in mfidl.idl.

2020-04-16 Thread Liu Hao
在 2020/4/11 17:27, Nikolay Sivov 写道: > Signed-off-by: Nikolay Sivov > --- > > Resending, now subscribed to the list. > > Remaining quote types belong to other files, I'll move them later. > Changes in this patch match current SDK (and Wine). > > mingw-w64-headers/include/mfidl.idl | 555 ++

Re: [Mingw-w64-public] [PATCH] headers: move the C++ check for interlocked API

2020-04-16 Thread Liu Hao
在 2020/4/16 14:17, Steve Lhomme 写道: > The code is blocked the same way as before. This avoids a warning with clang: > > ../mingw-w64/mingw-w64-headers/include/winbase.h:3088:5: warning: macro > expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] > #if MICROSOFT_WINDOWS_W

[Mingw-w64-public] [PATCH] crt: add more DLLs to windowsapp

2020-04-16 Thread Steve Lhomme
There are many DLLs with their API entries listed by MS that were no linkable yet using -lwindowsapp as recommended for apps the can run on all types of devices. https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis --- mingw-w64-crt/Makefile.am | 71 ++

Re: [Mingw-w64-public] [PATCH] headers: make Mingw-w64 pass -Wstrict-prototypes.

2020-04-16 Thread Liu Hao
在 2020/4/15 22:03, Jehan Pagès 写道: > Hi! > > > > Ok well I have also reported a patch upstream to json-c to disable this > warning/error when building for Windows: > https://github.com/json-c/json-c/pull/581 > > But ideally we should be able to compile with Mingw-w64 while having all > warnings

[Mingw-w64-public] [PATCH 5/5] headers: disable some character APIs from the C runtime in winstore builds

2020-04-16 Thread Steve Lhomme
They are not allowed (as far as 2016 doc goes): https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 "Multi-byte strings are not supported in Windows 8.x Store apps." "Multi-byte strings are not supported in UWP apps." --- mingw-w6

[Mingw-w64-public] [PATCH 4/5] headers: forbid deprecated DLLs APIs from the C runtime in winstore builds

2020-04-16 Thread Steve Lhomme
They are not allowed: https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 "These were obsolete functions in previous CRT versions. Also, user cannot load DLLs except from those in the same application package." --- mingw-w64-heade

[Mingw-w64-public] [PATCH 2/5] headers: disable process APIs from the C runtime in winstore builds

2020-04-16 Thread Steve Lhomme
It's not allowed to launch another process (as far as 2016 doc goes): https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 "The functionality is not available in UWP apps. A UWP app cannot invoke another UWP app or a desktop app." -

[Mingw-w64-public] [PATCH 3/5] headers: disable cwait/_cwait from the C runtime in winstore builds

2020-04-16 Thread Steve Lhomme
It's not allowed to launch another process (as far as 2016 doc goes): https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 "These functions are used to read and write directly from and to the console. UWP apps are GUI only; they don

[Mingw-w64-public] [PATCH 1/5] headers: allow blocking some C runtime APIs in winstore builds

2020-04-16 Thread Steve Lhomme
Based on this documentation some APIs are not allowed in UWP builds https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=vs-2019 The documentation is old and may not apply to Win10 but it's still the one listed for UCRT compatibility : http