From: Ulrich Drepper Date: Mon, 11 Sep 1995 12:17:05 +0000 (+0000) Subject: (MAX): Add macro. It is not sure we get it through any header file. X-Git-Tag: cvs/libc-950922~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a36e4c9f7b80f4bc03c4d2ef76e13501a6213eb7;p=platform%2Fupstream%2Fglibc.git (MAX): Add macro. It is not sure we get it through any header file. --- diff --git a/io/fts.c b/io/fts.c index 044779d..75a5b76 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)