Re: [Mingw-w64-public] [PATCH] Enable __USE_MINGW_ANSI_STDIO for C99 and C++11 when not using UCRT

2020-04-29 Thread Martin Storsjö
On Wed, 29 Apr 2020, Liu Hao wrote: 在 2020/4/28 15:22, Pali Rohár 写道: C99 and C++11 standards requires printf ll modifier for long long type but it does not work in WinXP system msvcrt.dll. It requires at least library msvcr80.dll. So when gcc is invoked with --std=c99 (or new) or --std=c++11

Re: [Mingw-w64-public] [PATCH] crt: Add missing functions in msvcr80.def

2020-04-29 Thread Liu Hao
在 2020/4/30 2:31, Pali Rohár 写道: > On Wednesday 29 April 2020 22:20:57 Liu Hao wrote: > > The application failed to initialize properly (0xc142). Click OK to > terminate application. > > > When I tried to link with -lmsvcr90 and run it on same box, it works > fine and prints hello world

Re: [Mingw-w64-public] [PATCH] winstorecompat: add libwindowsappcompat to use with libwindowsapp

2020-04-29 Thread Martin Storsjö
On Wed, 29 Apr 2020, Steve Lhomme wrote: The original libwinstorecompat is designed to be used with libmincore. - CreateEventW is allowed - CreateMutexW is allowed - CreateSemaphoreW is allowed - InitializeCriticalSection is allowed - GetFileAttributes is allowed - WaitForSingleObject is allowe

Re: [Mingw-w64-public] [PATCH] headers/dcomptypes.h: add winver conditions and missing enum

2020-04-29 Thread Liu Hao
在 2020/4/29 23:09, Biswapriyo Nath 写道: > ... > > > Thanks. Pushed. -- Best regards, LH_Mouse signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.

[Mingw-w64-public] [PATCH] headers/dcomptypes.h: add winver conditions and missing enum

2020-04-29 Thread Biswapriyo Nath
... From c28024f83e0b14c6f3c0edeb9099b52fb9616de9 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 29 Apr 2020 20:37:52 +0530 Subject: [PATCH] headers/dcomptypes.h: add winver conditions and missing enum Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/dcomptypes.h | 20 +++

[Mingw-w64-public] [PATCH] winstorecompat: add libwindowsappcompat to use with libwindowsapp

2020-04-29 Thread Steve Lhomme
The original libwinstorecompat is designed to be used with libmincore. - CreateEventW is allowed - CreateMutexW is allowed - CreateSemaphoreW is allowed - InitializeCriticalSection is allowed - GetFileAttributes is allowed - WaitForSingleObject is allowed - GetTickCount is allowed - SetUnhandledEx

Re: [Mingw-w64-public] [PATCH 3/3] headers: crt: disable _getpid in UWP builds

2020-04-29 Thread Liu Hao
在 2020/4/29 21:37, Steve Lhomme 写道: > It is not allowed, just like getpid. > > https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps > --- > mingw-w64-headers/crt/process.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks. I p

Re: [Mingw-w64-public] [PATCH] stdio_s.h: Add L_tmpnam_s and TMP_MAX_S

2020-04-29 Thread Liu Hao
在 2020/4/29 7:09, Noah Treuhaft 写道: > Signed-off-by: Noah Treuhaft > --- > This seems like the right place for these, but they might belong elsewhere. > > They're documented here: > > https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/tmpnam-s-wtmpnam-s?view=vs-2019#remarks > > m

Re: [Mingw-w64-public] [PATCH] headers/inputscope.idl: add winapifamily conditions and ITfInputScope2 interface

2020-04-29 Thread Liu Hao
在 2020/4/28 23:57, Biswapriyo Nath 写道: > ... > > Thanks. Pushed this one. -- Best regards, LH_Mouse signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourc

[Mingw-w64-public] [PATCH] crt: Add missing functions in msvcr80.def

2020-04-29 Thread Liu Hao
在 2020/4/28 23:47, Pali Rohár 写道: > > They really exist in my tested msvcr80.dll file! > > I thought that if symbols are missing in mingw def files then functions > are unimplemented. But it looks like that problem is in mingw def files > and rather def file should be fixed. Would you do it? >

Re: [Mingw-w64-public] [PATCH] Enable __USE_MINGW_ANSI_STDIO for C99 and C++11 when not using UCRT

2020-04-29 Thread Liu Hao
在 2020/4/28 15:22, Pali Rohár 写道: > C99 and C++11 standards requires printf ll modifier for long long type but > it does not work in WinXP system msvcrt.dll. It requires at least library > msvcr80.dll. > > So when gcc is invoked with --std=c99 (or new) or --std=c++11 (or new) ansi > stdio macro ne

[Mingw-w64-public] [PATCH 2/3] headers: crt: disable getpid in UWP builds

2020-04-29 Thread Steve Lhomme
It is not allowed. It was already disabled in process.h from 7c2e0a371f0f631513611988688f0a6b19ea9731 https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps --- mingw-w64-headers/crt/unistd.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Mingw-w64-public] [PATCH 3/3] headers: crt: disable _getpid in UWP builds

2020-04-29 Thread Steve Lhomme
It is not allowed, just like getpid. https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps --- mingw-w64-headers/crt/process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/process.h b/mingw-w64-header

[Mingw-w64-public] [PATCH 1/3] headers: crt: disable _resetstkoflw in UWP builds

2020-04-29 Thread Steve Lhomme
It is not allowed. https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps --- mingw-w64-headers/crt/malloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw-w64-headers/crt/malloc.h b/mingw-w64-headers/crt/malloc.h index 9d75ea6f..24e