diff options
author | DRC <dcommander@users.sourceforge.net> | 2011-05-24 09:17:43 +0000 |
---|---|---|
committer | DRC <dcommander@users.sourceforge.net> | 2011-05-24 09:17:43 +0000 |
commit | 20c404d3b3035412ed6a2ef5a7e04408c2d32bfd (patch) | |
tree | 5aaf5f94c85d56f2b2d592a01ccf889543e226b6 /tjutil.h | |
parent | 3a1bb35117bfd017d3e2b84f457431ecb380900f (diff) | |
download | libjpeg-turbo-20c404d3b3035412ed6a2ef5a7e04408c2d32bfd.tar.gz |
Add max, min functions
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@624 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'tjutil.h')
-rw-r--r-- | tjutil.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |