changeset 29521:83147ff53112

compat: provide a declaration of ssize_t, for MS windows
author Maciej Fijalkowski <fijall@gmail.com>
date Mon, 11 Jul 2016 13:53:35 +0200
parents 57106f357cd1
children 9c37df347485
files mercurial/compat.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;