* lib/defines.h: Added MIN and MAX macros.

* libmisc/salt.c: Removed MIN and MAX macros.
This commit is contained in:
nekral-guest
2009-04-21 22:06:09 +00:00
parent 2ba18ea4a9
commit c8f45eda53
3 changed files with 13 additions and 4 deletions

View File

@ -348,4 +348,12 @@ extern char *strerror ();
# define unused
#endif
/* ! Arguments evaluated twice ! */
#ifndef MIN
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef MAX
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
#endif
#endif /* _DEFINES_H_ */