mirror of
https://github.com/curl/curl.git
synced 2026-04-30 03:47:51 +03:00
curl_setup.h: fix FMT_SOCKET_T to be unsigned on Windows
To match the Windows socket type. Ref: https://learn.microsoft.com/windows/win32/winsock/socket-data-type-2 Cherry-picked from #18343 Closes #19881
This commit is contained in:
parent
cce660693c
commit
86f5bd3c6e
1 changed files with 6 additions and 2 deletions
|
|
@ -519,9 +519,13 @@
|
|||
#endif
|
||||
|
||||
#if SIZEOF_CURL_SOCKET_T < 8
|
||||
#ifdef _WIN32
|
||||
# define FMT_SOCKET_T "u"
|
||||
#else
|
||||
# define FMT_SOCKET_T "d"
|
||||
#elif defined(__MINGW32__)
|
||||
# define FMT_SOCKET_T "zd"
|
||||
#endif
|
||||
#elif defined(_WIN32)
|
||||
# define FMT_SOCKET_T "zu"
|
||||
#else
|
||||
# define FMT_SOCKET_T "qd"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue