aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-11 05:59:13 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-11 05:59:13 +0000
commit1ad07b77396821ee5b69a30bafa9df035d44cd59 (patch)
treedb4b216c8811694786c5ce5505734e09466e897d /posix
parent929b1c07081afacabd347728609b1522f9ddb0a4 (diff)
downloadglibc-1ad07b77396821ee5b69a30bafa9df035d44cd59.zip
glibc-1ad07b77396821ee5b69a30bafa9df035d44cd59.tar.gz
glibc-1ad07b77396821ee5b69a30bafa9df035d44cd59.tar.bz2
* 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.
Diffstat (limited to 'posix')
-rw-r--r--posix/regex_internal.h8
1 files changed, 8 insertions, 0 deletions
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 <stdbool.h>
#endif /* HAVE_STDBOOL_H || _LIBC */
+#if defined HAVE_STDINT_H || defined _LIBC
+# include <stdint.h>
+#endif /* HAVE_STDINT_H || _LIBC */
#if defined _LIBC
# include <bits/libc-lock.h>
#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