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:
Viktor Szakats 2025-08-21 13:59:46 +02:00
parent cce660693c
commit 86f5bd3c6e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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