aboutsummaryrefslogtreecommitdiff
path: root/i2ctcp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-05 12:51:24 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-05 12:51:24 +0200
commita8b794c02574e96150d55852fa5db1ce7529503d (patch)
treecac16715745c58aa18b3c8fac8f058517ef234a9 /i2ctcp
parenta96ffb4d0fd8576d753bb975b674b2aeef617d5f (diff)
add arduino cmake toolchain + improve lazy.mk
Diffstat (limited to 'i2ctcp')
-rw-r--r--i2ctcp/i2ctcpv1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/i2ctcp/i2ctcpv1.c b/i2ctcp/i2ctcpv1.c
index 1ae1da0..944df3a 100644
--- a/i2ctcp/i2ctcpv1.c
+++ b/i2ctcp/i2ctcpv1.c
@@ -1,5 +1,7 @@
#include <mpack.h>
-#include <sys/param.h> // MIN() macro
+#ifndef MIN
+#define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
#include "i2ctcpv1.h"