git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1876
fefdeb5f-60dc-0310-8127-
8f9354f1896f
#include <unistd.h>
#include <assert.h>
#include <limits.h>
-#include <unistd.h>
+#include <unistd.h>
#include <pulsecore/log.h>
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
+#ifndef CLAMP
+#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
+#endif
+
/* This type is not intended to be used in exported APIs! Use classic "int" there! */
#ifdef HAVE_STD_BOOL
typedef _Bool pa_bool_t;