summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdülhamit Yilmaz <mr.yilmaz@gmx.de>2014-10-13 12:10:56 +0200
committerAbdülhamit Yilmaz <mr.yilmaz@gmx.de>2014-10-13 12:10:56 +0200
commitcfd6fea109e26f79781ca1404e12f20efee6697c (patch)
tree8231bf799e3af36b65ef64dce804e854b6ef5dcf
parent3bd95fb5113d5e805556a124a3a4e84c43882adb (diff)
Add missing MIN directive
It's needed in strbuf_cmp().
-rw-r--r--src/buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7c2b86b..67677d5 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -19,6 +19,8 @@ unsigned char strbuf__oom[1];
if ((d) > buf->asize && strbuf_grow(b, (d)) < 0)\
return -1;
+#define MIN(x,y) ((x<y) ? x : y)
+
void strbuf_init(strbuf *buf, int initial_size)
{
buf->asize = 0;