regex: rely on stdint.h for SIZE_MAX
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Feb 2012 07:06:43 +0000 (23:06 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Feb 2012 07:18:04 +0000 (23:18 -0800)
* lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.

ChangeLog
lib/regex_internal.h

index 9171da1..932a396 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
 
+       regex: rely on stdint.h for SIZE_MAX
+       * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
+
+2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
+
        regex: merge glibc changes
 
        * lib/regcomp.c (init_dfa): Tighten overflow checks to test
index 714b54c..891e178 100644 (file)
 # 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_WCTYPE_H && HAVE_ISWCTYPE && HAVE_WCSCOLL) || _LIBC
 # define RE_ENABLE_I18N
 #endif