summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-10 01:42:26 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-07-10 01:42:26 +0000
commit3a585b6fe13ff35b6c1ecf12295b2db75e9221c2 (patch)
tree698f4f368017a1dd58df118ab5b2225ee8129ca8
parentdbd0371b179c7fc4a6dae79ad66d149eff7687c9 (diff)
Define MIN if not available
-rw-r--r--src/hci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index e2c355c0..a72b0355 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -45,6 +45,10 @@
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
+#ifndef MIN
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
+#endif
+
typedef struct {
char *str;
unsigned int val;