[PATCH] util.h: add stdint basic type definitions
elson.wei at gmail.com
elson.wei at gmail.com
Thu Sep 12 09:10:40 UTC 2013
# HG changeset patch
# User Wei, Elson <elson.wei at gmail.com>
# Date 1378977006 -28800
# Thu Sep 12 17:10:06 2013 +0800
# Node ID ca63ac781bf24e47995cc7d76b694e2cf50f05d6
# Parent d69e06724b96a985f29fd493a5dfe356a75af387
util.h: add stdint basic type definitions
MSVC v15 doesn't have stdint.h. Add basic int types those are defined in
stdint.h.
diff --git a/mercurial/util.h b/mercurial/util.h
--- a/mercurial/util.h
+++ b/mercurial/util.h
@@ -121,9 +121,14 @@
#ifdef _MSC_VER
/* msvc 6.0 has problems */
#define inline __inline
-typedef unsigned char uint8_t;
-typedef unsigned long uint32_t;
-typedef unsigned __int64 uint64_t;
+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
#include <stdint.h>
#endif
More information about the Mercurial-devel
mailing list