From 1a03c5f6fd2eb2aa0eee4d2c820e2578908d1dd3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 24 Oct 2014 20:13:51 -0700 Subject: Only define MIN if it's undefined. Note: it is defined in GNU libc (Linux) and FreeBSD and OSX sys/param.h. --- src/buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/buffer.c b/src/buffer.c index aab1f08..1cdcae8 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -19,7 +19,9 @@ unsigned char strbuf__oom[1]; if ((d) > buf->asize && strbuf_grow(b, (d)) < 0) \ return -1; +#ifndef MIN #define MIN(x,y) ((x