changeset 36914:d255744de97a

xdiff: backport int64_t and uint64_t types to Windows Sadly, MSVC 2008 lacks stdint.h. These are the only two definitions needed right now.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 09 Mar 2018 21:31:57 -0500
parents da2977e674a3
children 651c80720eed
files mercurial/thirdparty/xdiff/xinclude.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/thirdparty/xdiff/xinclude.h	Thu Mar 08 22:33:24 2018 +0900
+++ b/mercurial/thirdparty/xdiff/xinclude.h	Fri Mar 09 21:31:57 2018 -0500
@@ -24,7 +24,13 @@
 #define XINCLUDE_H
 
 #include <ctype.h>
+#if !defined(_MSC_VER) || _MSC_VER >= 1600
 #include <stdint.h>
+#else
+/* prior to Visual Studio 2010 */
+typedef long long int64_t;
+typedef unsigned long long uint64_t;
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>