Add MIN/MAX macros if not already present.

pull/1/merge
William Pitcock 2012-04-30 18:07:51 +00:00
parent 3b154d8a5a
commit df45d850b7
1 changed files with 8 additions and 0 deletions

8
pkg.h
View File

@ -58,6 +58,14 @@ typedef struct tuple_ pkg_tuple_t;
#define LOCAL_COPY(a) \
strcpy(alloca(strlen(a) + 1), a)
#ifndef MIN
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef MAX
# define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
struct dependency_ {
struct dependency_ *prev, *next;