From 548b023e76021f933c8cd6e1c194fbb600c2f890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Wed, 9 Apr 2008 19:30:25 +0000 Subject: [PATCH] Add min/max macros --- tvhead.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tvhead.h b/tvhead.h index 9c8034a3..abac49ae 100644 --- a/tvhead.h +++ b/tvhead.h @@ -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 */