Skip to content

Commit

Permalink
Add max, min functions
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@624 632fc199-4ca6-4c93-a231-07263d6284db
  • Loading branch information
dcommander committed May 24, 2011
1 parent 3a1bb35 commit 20c404d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tjutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 20c404d

Please sign in to comment.