# HG changeset patch # User Maciej Fijalkowski # Date 1468238015 -7200 # Node ID 83147ff53112c436270f24fe5b3599024a0edaaa # Parent 57106f357cd1811fced0438af6bb6a3a8751d711 compat: provide a declaration of ssize_t, for MS windows diff -r 57106f357cd1 -r 83147ff53112 mercurial/compat.h --- a/mercurial/compat.h Sat Jul 09 23:04:03 2016 -0400 +++ b/mercurial/compat.h Mon Jul 11 13:53:35 2016 +0200 @@ -5,6 +5,11 @@ #ifdef _MSC_VER /* msvc 6.0 has problems */ #define inline __inline +#if defined(_WIN64) +typedef __int64 ssize_t; +#else +typedef long ssize_t; +#endif typedef signed char int8_t; typedef short int16_t; typedef long int32_t;