Mercurial > hg > octave-lyh > gnulib-hg
changeset 8644:7cf946481cd2
* m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
1.5.x.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 05 Apr 2007 03:41:14 +0000 |
parents | 013fc89d552c |
children | 21f8505f12f3 |
files | ChangeLog m4/stdint.m4 |
diffstat | 2 files changed, 11 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-04 Eric Blake <ebb9@byu.net> + + * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin + 1.5.x. + 2007-04-04 Bruno Haible <bruno@clisp.org> * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
--- 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 @@ 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: