mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-14 09:28:52 +00:00
compat: document redefining ssize_t when using MSVC
See: https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types#ssize_t https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
This commit is contained in:
parent
3be7ee750f
commit
f7dc99244c
@ -77,14 +77,10 @@ typedef unsigned int SOCKET;
|
||||
#define MAX_PATH 1024
|
||||
#endif
|
||||
|
||||
// ssize_t is POSIX, and not present when using MSVC.
|
||||
#ifdef _MSC_VER
|
||||
#if !defined(ssize_t)
|
||||
#ifdef _WIN64
|
||||
typedef int64_t ssize_t;
|
||||
#else
|
||||
typedef int32_t ssize_t;
|
||||
#endif
|
||||
#endif
|
||||
#include <BaseTsd.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
#endif
|
||||
|
||||
// The type of the option value passed to getsockopt & setsockopt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user