mirror of
https://github.com/mirror/wget.git
synced 2024-12-28 05:40:08 +08:00
Gnulib stdbool.h fix.
This commit is contained in:
parent
ec7940f347
commit
a9fa555c51
@ -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>
|
||||
|
||||
* po/*.po: Refresh from TP and update-po.
|
||||
|
@ -97,10 +97,11 @@ typedef bool _Bool;
|
||||
"warning: _Bool is a keyword in ISO C99".
|
||||
Use of an enum type, with IRIX cc, leads to a stupid
|
||||
"warning(1185): enumerated type mixed with another type".
|
||||
The only benefit of the enum type, debuggability, is not important
|
||||
with these compilers. So use 'signed char' and no typedef. */
|
||||
Even the existence of an enum type, without a 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
|
||||
enum { false = 0, true = 1 };
|
||||
# else
|
||||
/* With this compiler, trust the _Bool type if the compiler has it. */
|
||||
# if !@HAVE__BOOL@
|
||||
|
@ -247,6 +247,11 @@
|
||||
# define uintmax_t unsigned long int
|
||||
#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 */
|
||||
|
||||
#if ! defined __cplusplus || defined __STDC_LIMIT_MACROS
|
||||
|
Loading…
Reference in New Issue
Block a user