From 1ad07b77396821ee5b69a30bafa9df035d44cd59 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 11 Dec 2005 05:59:13 +0000 Subject: * posix/regex_internal.h: Include if available. 2005-12-06 Paolo Bonzini * posix/regex_internal.h (SIZE_MAX): Provide a default definition. --- ChangeLog | 8 ++++++++ posix/regex_internal.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/ChangeLog b/ChangeLog index 81be683..50d5dfb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-12-10 Ulrich Drepper + + * posix/regex_internal.h: Include if available. + +2005-12-06 Paolo Bonzini + + * posix/regex_internal.h (SIZE_MAX): Provide a default definition. + 2005-12-08 Ulrich Drepper * nis/nis_call.c (inetstr2int): Optimize. diff --git a/posix/regex_internal.h b/posix/regex_internal.h index d1447a4..3b575c3 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -42,6 +42,9 @@ #if defined HAVE_STDBOOL_H || defined _LIBC # include #endif /* HAVE_STDBOOL_H || _LIBC */ +#if defined HAVE_STDINT_H || defined _LIBC +# include +#endif /* HAVE_STDINT_H || _LIBC */ #if defined _LIBC # include #else @@ -83,6 +86,11 @@ # define gettext_noop(String) String #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 # define RE_ENABLE_I18N #endif -- cgit v1.1