forked from ariadne/pkgconf
Add MIN/MAX macros if not already present.
parent
3b154d8a5a
commit
df45d850b7
8
pkg.h
8
pkg.h
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue