Merge changes from gnulib. This was prompted because the CVS

snapshot of Bison didn't build on Solaris 7 due to strnlen problems.
This commit is contained in:
Paul Eggert
2003-03-12 23:08:11 +00:00
parent 4f8a9f6dba
commit f61aad9399
33 changed files with 719 additions and 294 deletions

View File

@@ -183,23 +183,7 @@ void *memrchr (const void *str, int ch, size_t size);
| Booleans. |
`-----------*/
#if HAVE_STDBOOL_H
# include <stdbool.h>
#else
# ifndef __bool_true_false_are_defined
# 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
#endif
#include <stdbool.h>
/*-----------.