aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1995-09-11 12:17:05 +0000
committerUlrich Drepper <drepper@redhat.com>1995-09-11 12:17:05 +0000
commita36e4c9f7b80f4bc03c4d2ef76e13501a6213eb7 (patch)
tree7bb848ee650e7fd14bdf270b8df6c0e5e0e729e9 /io
parent287fbbe72eaa7465640a6573ba7fe8e1a7c41752 (diff)
downloadglibc-a36e4c9f7b80f4bc03c4d2ef76e13501a6213eb7.tar
glibc-a36e4c9f7b80f4bc03c4d2ef76e13501a6213eb7.tar.gz
glibc-a36e4c9f7b80f4bc03c4d2ef76e13501a6213eb7.tar.bz2
glibc-a36e4c9f7b80f4bc03c4d2ef76e13501a6213eb7.zip
(MAX): Add macro. It is not sure we get it through any header file.
Diffstat (limited to 'io')
-rw-r--r--io/fts.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io/fts.c b/io/fts.c
index 044779d595..75a5b76970 100644
--- a/io/fts.c
+++ b/io/fts.c
@@ -67,6 +67,12 @@ static int fts_palloc __P((FTS *, size_t));
static FTSENT *fts_sort __P((FTS *, FTSENT *, int));
static u_short fts_stat __P((FTS *, FTSENT *, int));
+#ifndef MAX
+#define MAX(a, b) ({ __typeof__ (a) _a = (a); \
+ __typeof__ (b) _b = (b); \
+ _a > _b ? _a : _b; })
+#endif
+
#define ISDOT(a) (a[0] == '.' && (!a[1] || a[1] == '.' && !a[2]))
#define ISSET(opt) (sp->fts_options & opt)