summaryrefslogtreecommitdiff
path: root/lib/str-two-way.h
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-05-15 06:16:11 -0600
committerEric Blake <ebb9@byu.net>2008-05-15 06:16:11 -0600
commita37217922a7b85ddaab2d802b275905f6e9310ac (patch)
tree5ce85ca241c241272a9abe900e4b82583351f4d1 /lib/str-two-way.h
parent1f191226cb1994d17429ac7dd9e9e1979e705efb (diff)
downloadgnulib-a37217922a7b85ddaab2d802b275905f6e9310ac.tar.gz
Glibc finally accepted the memmem speedup code, bugzilla #5514.
* doc/glibc-functions/memmem.texi (memmem): Mention last broken glibc version. * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise. * doc/posix-functions/strstr.texi (strstr): Likewise. * lib/str-two-way.h (MAX): Sychronize with glibc. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/str-two-way.h')
-rw-r--r--lib/str-two-way.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/str-two-way.h b/lib/str-two-way.h
index d144ac95b4..b0338a70a1 100644
--- a/lib/str-two-way.h
+++ b/lib/str-two-way.h
@@ -67,7 +67,9 @@
# define LONG_NEEDLE_THRESHOLD SIZE_MAX
#endif
-#define MAX(a, b) ((a < b) ? (b) : (a))
+#ifndef MAX
+# define MAX(a, b) ((a < b) ? (b) : (a))
+#endif
#ifndef CANON_ELEMENT
# define CANON_ELEMENT(c) c