[tz] Cygwin

Paul Eggert eggert at cs.ucla.edu
Thu Mar 27 01:18:30 UTC 2014


Thanks, I pushed the attached; it's similar but a bit more streamlined.
-------------- next part --------------
From 451eb87ddd6a347494b6a08ca7688121a1bf5895 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert at cs.ucla.edu>
Date: Wed, 26 Mar 2014 18:16:48 -0700
Subject: [PATCH] * private.h, zdump.c (HAVE_STDINT_H), NEWS: Define to 1 if
 __CYGWIN__.

(Thanks to Arthur David Olson.)
---
 NEWS      | 7 +++++++
 private.h | 5 +++--
 zdump.c   | 4 +++-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index de7400a..f489794 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,13 @@
 News for the tz database
 
 
+Unreleased, experimental changes
+
+  Changes affecting code
+
+    Port to Cygwin sans glibc.  (Thanks to Arthur David Olson.)
+
+
 Release 2014b - 2014-03-24 21:28:50 -0700
 
   Changes affecting near-future time stamps
diff --git a/private.h b/private.h
index 1a85c88..4e8f4ae 100644
--- a/private.h
+++ b/private.h
@@ -120,8 +120,9 @@
 */
 #ifndef HAVE_STDINT_H
 #define HAVE_STDINT_H \
-	(199901 <= __STDC_VERSION__ || \
-	2 < (__GLIBC__ + (0 < __GLIBC_MINOR__)))
+   (199901 <= __STDC_VERSION__ \
+    || 2 < __GLIBC__ + (1 <= __GLIBC_MINOR__)	\
+    || __CYGWIN__)
 #endif /* !defined HAVE_STDINT_H */
 
 #if HAVE_STDINT_H
diff --git a/zdump.c b/zdump.c
index 209b79d..c48ac84 100644
--- a/zdump.c
+++ b/zdump.c
@@ -36,7 +36,9 @@
 
 #ifndef HAVE_STDINT_H
 # define HAVE_STDINT_H \
-    (199901 <= __STDC_VERSION__ || 2 < (__GLIBC__ + (0 < __GLIBC_MINOR__)))
+    (199901 <= __STDC_VERSION__ \
+     || 2 < __GLIBC__ + (1 <= __GLIBC_MINOR__)	\
+     || __CYGWIN__)
 #endif
 #if HAVE_STDINT_H
 # include "stdint.h"
-- 
1.8.3.2



More information about the tz mailing list