[Mingw-w64-public] [PATCH] Add missing winsock2 prototypes and definitions

2022-06-02 Thread Rafael Lopez
Hi, I have attached a patch for missing prototypes snf definitions for winsock2.h First submission, feedback welcome :) Rafael -- From 80dcd79d14460523ac4e89773031399e4906b346 Mon Sep 17 00:00:00 2001 From: Raf Lopez Date: Fri, 3 Jun 2022 03:53:10 + Subject: [PATCH] Add

Re: [Mingw-w64-public] Detect presence of Windows implementations of inet_ntop and inet_npton

2022-06-02 Thread LIU Hao
在 2022-06-03 09:34, sisyphus 写道: It does, however, issue a compile-time warning in relation to the second (inet_ntop) of the two declarations: try.c(7): warning C4028: formal parameter 4 different from declaration The Microsoft variation has its 4th parameter as a `size_t`, while your prot

Re: [Mingw-w64-public] Detect presence of Windows implementations of inet_ntop and inet_npton

2022-06-02 Thread sisyphus
On Fri, Jun 3, 2022 at 12:28 AM sisyphus wrote: > On Thu, Jun 2, 2022 at 10:47 PM LIU Hao wrote: > >> 在 2022/6/2 20:37, sisyphus 写道: >> > On Thu, Jun 2, 2022 at 12:28 PM sisyphus wrote: >> > > > What's the error? Is it caused by re-declaration with a different calling >> convention i.e. >

Re: [Mingw-w64-public] [PATCH] headers: Add missing APIs and symbols in winbase.h

2022-06-02 Thread LIU Hao
在 2022-06-02 21:23, Biswapriyo Nath 写道: Thanks for the review. I have attached the updated patch file. Thanks for the patch. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing lis

Re: [Mingw-w64-public] Detect presence of Windows implementations of inet_ntop and inet_npton

2022-06-02 Thread sisyphus
On Thu, Jun 2, 2022 at 10:47 PM LIU Hao wrote: > 在 2022/6/2 20:37, sisyphus 写道: > > On Thu, Jun 2, 2022 at 12:28 PM sisyphus wrote: > > > >> Hi, > >> In the Perl source, we hard code our own implementation of inet_ntop() > >> and inet_pton(). > >> This results in a fatal compile-time error if th

Re: [Mingw-w64-public] [PATCH] headers: Add missing APIs and symbols in winbase.h

2022-06-02 Thread sotrdg sotrdg
I would like to see wine symbols in ntdll.a. Could you add those symbols? Sent from Mail for Windows From: Biswapriyo Nath Sent: Thursday, June 2, 2022 09:24 To: mingw-w64-public@lists.sourceforge.net

Re: [Mingw-w64-public] [PATCH] headers: Add missing APIs and symbols in winbase.h

2022-06-02 Thread Biswapriyo Nath
Thanks for the review. I have attached the updated patch file. From 8a591f3fc09b2290dd8282932fee398fd3f20885 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 2 Jun 2022 18:51:33 +0530 Subject: [PATCH] headers: Add missing APIs and symbols in winbase.h Signed-off-by: Biswapriyo Nath ---

Re: [Mingw-w64-public] Detect presence of Windows implementations of inet_ntop and inet_npton

2022-06-02 Thread LIU Hao
在 2022/6/2 20:37, sisyphus 写道: On Thu, Jun 2, 2022 at 12:28 PM sisyphus wrote: Hi, In the Perl source, we hard code our own implementation of inet_ntop() and inet_pton(). This results in a fatal compile-time error if the Windows (ws2tcpip.h) implementation is also present. What's the error?

Re: [Mingw-w64-public] Detect presence of Windows implementations of inet_ntop and inet_npton

2022-06-02 Thread sisyphus
On Thu, Jun 2, 2022 at 12:28 PM sisyphus wrote: > Hi, > In the Perl source, we hard code our own implementation of inet_ntop() > and inet_pton(). > This results in a fatal compile-time error if the Windows (ws2tcpip.h) > implementation is also present. > > I'm therefore looking for a portable way

[Mingw-w64-public] [PATCH] headers/crt: Add tmpfile_s delcaration

2022-06-02 Thread Biswapriyo Nath
From d026a9f2a04647d1ca6f2a9c6fea0eb83b0f348b Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 2 Jun 2022 17:55:17 +0530 Subject: [PATCH] headers/crt: Add tmpfile_s delcaration Required for google/nsync project Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/crt/sec_api/stdio_s.

[Mingw-w64-public] [PATCH 2/2] headers: Use the SEH based setjmp on ARM too, if __SEH__ is defined

2022-06-02 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- The latest LLVM from git supports generating SEH unwind info on ARM; it's not yet the default, but the default will be switched from dwarf to SEH once all relevant support patches have landed. --- mingw-w64-headers/crt/setjmp.h | 4 ++-- 1 file changed, 2 inserti

[Mingw-w64-public] [PATCH 1/2] crt: Fix .seh_handler directives for ARM

2022-06-02 Thread Martin Storsjö
The latest LLVM from git supports generating SEH unwind info on ARM. In ARM assembly, '@' is a comment character. Therefore, the use of that character in .seh_handler directives doesn't work on ARM. LLVM now accepts '%' as an alternative for '@' in .seh_handler directives [1], consistent with how

Re: [Mingw-w64-public] [PATCH] winpthreads: Move .seh_handlerdata to the end of the catch region

2022-06-02 Thread Martin Storsjö
On Wed, 1 Jun 2022, LIU Hao wrote: 在 2022-06-01 16:18, Martin Storsjö 写道: This matches what was done in 9718ecee1b95297b789b75a0be51bfd5905bcdcd for crt/crtexe.c. The .seh_handlerdata directive forces writing the .xdata entry immediately. On aarch64, the length of the function gets fixed at tha