--- minidlna-1.3.3/utils.h.orig +++ minidlna-1.3.3/utils.h @@ -30,6 +30,14 @@ #include "minidlnatypes.h" +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a,b) (((a)>(b))?(a):(b)) +#endif + /* String functions */ /* We really want this one inlined, since it has a major performance impact */ static inline int