compat: provide a declaration of ssize_t, for MS windows
authorMaciej Fijalkowski <fijall@gmail.com>
Mon, 11 Jul 2016 13:53:35 +0200
changeset 29521 83147ff53112
parent 29520 57106f357cd1
child 29522 9c37df347485
compat: provide a declaration of ssize_t, for MS windows
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;