compat.h: Update ssize_t under MSVC.

git-svn-id: https://svn.eduke32.com/eduke32@6375 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-07-22 04:00:20 +00:00
parent d5f8c7a028
commit 5c77a6a13c

View file

@ -408,7 +408,12 @@ defined __x86_64__ || defined __amd64__ || defined _M_X64 || defined _M_IA64 ||
////////// DEPRECATED: Standard library prefixing ////////// ////////// DEPRECATED: Standard library prefixing //////////
#ifdef _MSC_VER #ifdef _MSC_VER
# if defined _M_AMD64 || defined _M_ARM64 || defined _M_X64 || defined _WIN64
// should be int64_t, if not for a suspected VS compiler bug
typedef int32_t ssize_t; typedef int32_t ssize_t;
# else
typedef int32_t ssize_t;
# endif
#endif #endif
typedef size_t bsize_t; typedef size_t bsize_t;