From 5c77a6a13c5c99fb7053ae39b67ac9a385c8ac40 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 22 Jul 2017 04:00:20 +0000 Subject: [PATCH] compat.h: Update ssize_t under MSVC. git-svn-id: https://svn.eduke32.com/eduke32@6375 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/build/include/compat.h b/source/build/include/compat.h index 08a600c86..7820b618c 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -408,7 +408,12 @@ defined __x86_64__ || defined __amd64__ || defined _M_X64 || defined _M_IA64 || ////////// DEPRECATED: Standard library prefixing ////////// #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; +# else +typedef int32_t ssize_t; +# endif #endif typedef size_t bsize_t;