mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Unconditionally include stdbool.h.
This commit is contained in:
parent
293795e0ef
commit
3648b91197
@ -1,3 +1,8 @@
|
|||||||
|
2009-09-30 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
|
* sysdep.h: Unconditionally include stdbool.h (gnulib has it for
|
||||||
|
systems that don't supply it.)
|
||||||
|
|
||||||
2009-09-24 Micah Cowan <micah@cowan.name>
|
2009-09-24 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* vms.c: Moved from vms/vms.c.
|
* vms.c: Moved from vms/vms.c.
|
||||||
|
17
src/sysdep.h
17
src/sysdep.h
@ -131,23 +131,8 @@ void *alloca (size_t);
|
|||||||
# include "mswindows.h"
|
# include "mswindows.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Provide support for C99-type boolean type "bool". This blurb comes
|
/* Provided by gnulib on systems that don't have it: */
|
||||||
straight from the Autoconf 2.59 manual. */
|
|
||||||
#if HAVE_STDBOOL_H
|
|
||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#else
|
|
||||||
# if ! HAVE__BOOL
|
|
||||||
# ifdef __cplusplus
|
|
||||||
typedef bool _Bool;
|
|
||||||
# else
|
|
||||||
typedef unsigned char _Bool;
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
# define bool _Bool
|
|
||||||
# define false 0
|
|
||||||
# define true 1
|
|
||||||
# define __bool_true_false_are_defined 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Needed for compilation under OS/2 and MSDOS */
|
/* Needed for compilation under OS/2 and MSDOS */
|
||||||
#if defined(__EMX__) || defined(MSDOS)
|
#if defined(__EMX__) || defined(MSDOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user