summaryrefslogtreecommitdiff
path: root/src/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 67c47e0..fe3f50c 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -25,6 +25,8 @@ do_debug(void)
#define ERR(x, y, ...) do { err(x, "asound: %s " y, __func__, ##__VA_ARGS__); } while (0)
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
static inline char*
c_strdup(const char *str)