From 39537becd51f98732bfc79a5233b990ad9469031 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 5 Apr 2007 03:41:14 +0000 Subject: [PATCH] * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin 1.5.x. --- ChangeLog | 5 +++++ m4/stdint.m4 | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 018f98121..559e824f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-04 Eric Blake + + * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin + 1.5.x. + 2007-04-04 Bruno Haible * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct diff --git a/m4/stdint.m4 b/m4/stdint.m4 index 1a4b4a6a3..f440c46b8 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 22 +# stdint.m4 serial 23 dnl Copyright (C) 2001-2002, 2004-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -143,11 +143,11 @@ uintptr_t h = UINTPTR_MAX; intmax_t i = INTMAX_MAX; uintmax_t j = UINTMAX_MAX; struct s { - int check_PTRDIFF: PTRDIFF_MIN < 0 && 0 < PTRDIFF_MAX ? 1 : -1; - int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= 0 && 0 < SIG_ATOMIC_MAX ? 1 : -1; - int check_SIZE: 0 < SIZE_MAX ? 1 : -1; - int check_WCHAR: WCHAR_MIN <= 0 && 0 < WCHAR_MAX ? 1 : -1; - int check_WINT: WINT_MIN <= 0 && 0 < WINT_MAX ? 1 : -1; + int check_PTRDIFF: PTRDIFF_MIN < (ptrdiff_t) 0 && (ptrdiff_t) 0 < PTRDIFF_MAX ? 1 : -1; + int check_SIG_ATOMIC: SIG_ATOMIC_MIN <= (sig_atomic_t) 0 && (sig_atomic_t) 0 < SIG_ATOMIC_MAX ? 1 : -1; + int check_SIZE: (size_t) 0 < SIZE_MAX ? 1 : -1; + int check_WCHAR: WCHAR_MIN <= (wchar_t) 0 && (wchar_t) 0 < WCHAR_MAX ? 1 : -1; + int check_WINT: WINT_MIN <= (wint_t) 0 && (wint_t) 0 < WINT_MAX ? 1 : -1; /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ int check_UINT8_C: -- 2.11.0