From 20c404d3b3035412ed6a2ef5a7e04408c2d32bfd Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 24 May 2011 09:17:43 +0000 Subject: [PATCH] Add max, min functions git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@624 632fc199-4ca6-4c93-a231-07263d6284db --- tjutil.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tjutil.h b/tjutil.h index 5189caf3b..bdad348e4 100644 --- a/tjutil.h +++ b/tjutil.h @@ -36,4 +36,12 @@ #define strncasecmp strnicmp #endif +#ifndef min + #define min(a,b) ((a)<(b)?(a):(b)) +#endif + +#ifndef max + #define max(a,b) ((a)>(b)?(a):(b)) +#endif + extern double gettime(void);