util.h: add stdint basic type definitions
authorWei, Elson <elson.wei@gmail.com>
Fri, 13 Sep 2013 09:54:43 +0800
changeset 19723 7999f4fa155a
parent 19722 bf15935b68a3
child 19724 2b2a2e858fb7
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.
mercurial/util.h
--- 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