1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Gnulib stdbool.h fix.

This commit is contained in:
Micah Cowan 2007-10-23 12:34:10 -07:00
parent ec7940f347
commit a9fa555c51
3 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-10-23 Micah Cowan <micah@schmendrick>
* lib/stdbool.in.h, lib/stdint.in.h: gnulib-tool --update.
Includes fix for broken stdbool.h on Tru64.
2007-10-22 Micah Cowan <micah@cowan.name> 2007-10-22 Micah Cowan <micah@cowan.name>
* po/*.po: Refresh from TP and update-po. * po/*.po: Refresh from TP and update-po.

View File

@ -97,10 +97,11 @@ typedef bool _Bool;
"warning: _Bool is a keyword in ISO C99". "warning: _Bool is a keyword in ISO C99".
Use of an enum type, with IRIX cc, leads to a stupid Use of an enum type, with IRIX cc, leads to a stupid
"warning(1185): enumerated type mixed with another type". "warning(1185): enumerated type mixed with another type".
The only benefit of the enum type, debuggability, is not important Even the existence of an enum type, without a typedef,
with these compilers. So use 'signed char' and no typedef. */ "Invalid enumerator. (badenum)" with HP-UX cc on Tru64.
The only benefit of the enum, debuggability, is not important
with these compilers. So use 'signed char' and no enum. */
# define _Bool signed char # define _Bool signed char
enum { false = 0, true = 1 };
# else # else
/* With this compiler, trust the _Bool type if the compiler has it. */ /* With this compiler, trust the _Bool type if the compiler has it. */
# if !@HAVE__BOOL@ # if !@HAVE__BOOL@

View File

@ -247,6 +247,11 @@
# define uintmax_t unsigned long int # define uintmax_t unsigned long int
#endif #endif
/* Verify that intmax_t and uintmax_t have the same size. Too much code
breaks if this is not the case. If this check fails, the reason is likely
to be found in the autoconf macros. */
typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) - 1];
/* 7.18.2. Limits of specified-width integer types */ /* 7.18.2. Limits of specified-width integer types */
#if ! defined __cplusplus || defined __STDC_LIMIT_MACROS #if ! defined __cplusplus || defined __STDC_LIMIT_MACROS