From: DRC Date: Tue, 24 May 2011 09:17:43 +0000 (+0000) Subject: Add max, min functions X-Git-Tag: 1.1.90~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20c404d3b3035412ed6a2ef5a7e04408c2d32bfd;p=libjpeg-turbo Add max, min functions git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@624 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/tjutil.h b/tjutil.h index 5189caf..bdad348 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);