Mercurial > hg > libxtract
changeset 279:6ee836d79500
Add missing MIN() macro define
author | Jamie Bullock <jamie@jamiebullock.com> |
---|---|
date | Fri, 19 Dec 2014 17:46:10 +0000 |
parents | 0dbd0078d1c4 |
children | f60b0c431f3f 41b0f6b9b9a4 |
files | src/c-ringbuf/ringbuf.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/c-ringbuf/ringbuf.c Fri Nov 14 05:17:28 2014 -0800 +++ b/src/c-ringbuf/ringbuf.c Fri Dec 19 17:46:10 2014 +0000 @@ -24,6 +24,10 @@ #include <sys/param.h> #include <assert.h> +#ifndef MIN +#define MIN(x,y) ((x)>(y)?(y):(x)) +#endif + /* * The code is written for clarity, not cleverness or performance, and * contains many assert()s to enforce invariant assumptions and catch