summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 2e32720..1cdcae8 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -19,6 +19,10 @@ unsigned char strbuf__oom[1];
if ((d) > buf->asize && strbuf_grow(b, (d)) < 0) \
return -1;
+#ifndef MIN
+#define MIN(x,y) ((x<y) ? x : y)
+#endif
+
void strbuf_init(strbuf *buf, int initial_size)
{
buf->asize = 0;