>From 742e4c34cc7c9c02339b099e910bfb4feedb48c1 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Mon, 27 Jul 2015 11:48:24 -0700
Subject: [PATCH 7/7] Port uint_fast64_t to Visual Studio

Problem reported by Kees Dekker in:
http://mm.icann.org/pipermail/tz/2015-July/022525.html
* private.h (uint_fast64_t) [!UINT_FAST64_MAX]:
New typedef
---
 private.h | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/private.h b/private.h
index f277e7a..c6a2fcb 100644
--- a/private.h
+++ b/private.h
@@ -195,7 +195,7 @@ typedef long long	int_fast64_t;
 #  define INT_FAST64_MIN LLONG_MIN
 #  define INT_FAST64_MAX LLONG_MAX
 # else
-#  if (LONG_MAX >> 31) < 0xffffffff
+#  if LONG_MAX >> 31 < 0xffffffff
 Please use a compiler that supports a 64-bit integer type (or wider);
 you may need to compile with "-DHAVE_STDINT_H".
 #  endif
@@ -247,6 +247,18 @@ typedef long intmax_t;
 # endif
 #endif
 
+#ifndef UINT_FAST64_MAX
+# if defined ULLONG_MAX || defined __LONG_LONG_MAX__
+typedef unsigned long long uint_fast64_t;
+# else
+#  if ULONG_MAX >> 31 >> 1 < 0xffffffff
+Please use a compiler that supports a 64-bit integer type (or wider);
+you may need to compile with "-DHAVE_STDINT_H".
+#  endif
+typedef unsigned long	uint_fast64_t;
+# endif
+#endif
+
 #ifndef UINTMAX_MAX
 # if defined ULLONG_MAX || defined __LONG_LONG_MAX__
 typedef unsigned long long uintmax_t;
-- 
2.1.4

