[Mingw-w64-public] build error with clang. need __has_include()

2021-08-09 Thread sotrdg sotrdg
clang++ -fuse-ld=lld -o iobuf_file iobuf_file.cc -Ofast -std=c++20 -s -flto -march=native -I../fast_io/include --target=x86_64-windows-gnu --sysroot=/home/cqwrteur/cross/x86_64-w64-mingw32 In file included from iobuf_file.cc:1: In file included from ../fast_io/include/fast_io.h:9: In file include

Re: [Mingw-w64-public] patch to add htonll/ntohll

2021-08-09 Thread Michel Zou
I have no idea, I removed them if you think its unavailable. From: LIU Hao Sent: Monday, August 9, 2021 5:02 PM To: Michel Zou; mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] patch to add htonll/ntohll 在 2021-08-09 21:20, Michel Zou 写道:

Re: [Mingw-w64-public] patch to add htonll/ntohll

2021-08-09 Thread LIU Hao
在 2021-08-09 21:20, Michel Zou 写道: diff --git a/mingw-w64-crt/libce/winsock.def b/mingw-w64-crt/libce/winsock.def index c9e2e958d..a75b84c69 100644 --- a/mingw-w64-crt/libce/winsock.def +++ b/mingw-w64-crt/libce/winsock.def The `#if` guards are okay. However, changes to libce are highly dubious

Re: [Mingw-w64-public] patch to add htonll/ntohll

2021-08-09 Thread Michel Zou
From: LIU Hao Sent: Monday, August 9, 2021 12:58 PM To: mingw-w64-public@lists.sourceforge.net; Michel Zou Subject: Re: [Mingw-w64-public] patch to add htonll/ntohll 在 8/9/21 8:48 PM, Michel Zou 写道: > @@ -1018,6 +1019,7 @@ typedef unsigned int GROUP; > #ifndef

Re: [Mingw-w64-public] patch to add htonll/ntohll

2021-08-09 Thread LIU Hao
在 8/9/21 8:48 PM, Michel Zou 写道: @@ -1018,6 +1019,7 @@ typedef unsigned int GROUP; #ifndef __INSIDE_CYGWIN__ WINSOCK_API_LINKAGE u_long WSAAPI ntohl(u_long netlong); WINSOCK_API_LINKAGE u_short WSAAPI ntohs(u_short netshort); + WINSOCK_API_LINKAGE unsigned __int64 WSAAPI(unsigned __int

[Mingw-w64-public] patch to add htonll/ntohll

2021-08-09 Thread Michel Zou
Hello list, I tried to add the missing htonll/ntohll functions with the others, but I don't know if this is correct. Could someone look a this patch ? xan diff --git a/mingw-w64-crt/lib-common/ws2_32.def.in b/mingw-w64-crt/lib-common/ws2_32.def.in index b49c4b87d..1f9a2077b 100644 --- a/ming