summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 24da427..928304e 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -3,6 +3,9 @@
#include <stdint.h>
#include <math.h>
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#define MAX(a,b) (((a)>(b))?(a):(b))
+
/* Taken from sox */
const char* level(int channel, int peak)
{