aboutsummaryrefslogtreecommitdiff
path: root/tjutil.h
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-05-24 09:17:43 +0000
committerDRC <dcommander@users.sourceforge.net>2011-05-24 09:17:43 +0000
commit20c404d3b3035412ed6a2ef5a7e04408c2d32bfd (patch)
tree5aaf5f94c85d56f2b2d592a01ccf889543e226b6 /tjutil.h
parent3a1bb35117bfd017d3e2b84f457431ecb380900f (diff)
downloadlibjpeg-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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tjutil.h b/tjutil.h
index 5189caf3..bdad348e 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);