changeset 19723:7999f4fa155a

util.h: add stdint basic type definitions MS C compiler v15 doesn't have stdint.h. Add basic int types those are defined in stdint.h.
author Wei, Elson <elson.wei@gmail.com>
date Fri, 13 Sep 2013 09:54:43 +0800
parents bf15935b68a3
children 2b2a2e858fb7
files mercurial/util.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.h	Fri Sep 06 13:30:56 2013 +0400
+++ b/mercurial/util.h	Fri Sep 13 09:54:43 2013 +0800
@@ -121,7 +121,12 @@
 #ifdef _MSC_VER
 /* msvc 6.0 has problems */
 #define inline __inline
+typedef signed char int8_t;
+typedef short int16_t;
+typedef long int32_t;
+typedef __int64 int64_t;
 typedef unsigned char uint8_t;
+typedef unsigned short uint16_t;
 typedef unsigned long uint32_t;
 typedef unsigned __int64 uint64_t;
 #else