Add min/max macros

This commit is contained in:
Andreas Öman 2008-04-09 19:30:25 +00:00
parent 8221e3d052
commit 548b023e76

View file

@ -890,5 +890,7 @@ extern inline unsigned int tvh_strhash(const char *s, unsigned int mod)
return v % mod;
}
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif /* TV_HEAD_H */