* posix/regex_internal.h: Include <stdint.h> if available.

2005-12-06  Paolo Bonzini  <bonzini@gnu.org>

	* posix/regex_internal.h (SIZE_MAX): Provide a default definition.
This commit is contained in:
Ulrich Drepper 2005-12-11 05:59:13 +00:00
parent 929b1c0708
commit 1ad07b7739
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2005-12-10 Ulrich Drepper <drepper@redhat.com>
* posix/regex_internal.h: Include <stdint.h> if available.
2005-12-06 Paolo Bonzini <bonzini@gnu.org>
* posix/regex_internal.h (SIZE_MAX): Provide a default definition.
2005-12-08 Ulrich Drepper <drepper@redhat.com> 2005-12-08 Ulrich Drepper <drepper@redhat.com>
* nis/nis_call.c (inetstr2int): Optimize. * nis/nis_call.c (inetstr2int): Optimize.

View File

@ -42,6 +42,9 @@
#if defined HAVE_STDBOOL_H || defined _LIBC #if defined HAVE_STDBOOL_H || defined _LIBC
# include <stdbool.h> # include <stdbool.h>
#endif /* HAVE_STDBOOL_H || _LIBC */ #endif /* HAVE_STDBOOL_H || _LIBC */
#if defined HAVE_STDINT_H || defined _LIBC
# include <stdint.h>
#endif /* HAVE_STDINT_H || _LIBC */
#if defined _LIBC #if defined _LIBC
# include <bits/libc-lock.h> # include <bits/libc-lock.h>
#else #else
@ -83,6 +86,11 @@
# define gettext_noop(String) String # define gettext_noop(String) String
#endif #endif
/* For loser systems without the definition. */
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)
#endif
#if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_WCRTOMB && HAVE_MBRTOWC && HAVE_WCSCOLL) || _LIBC #if (defined MB_CUR_MAX && HAVE_LOCALE_H && HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_WCRTOMB && HAVE_MBRTOWC && HAVE_WCSCOLL) || _LIBC
# define RE_ENABLE_I18N # define RE_ENABLE_I18N
#endif #endif