# HG changeset patch # User Jamie Bullock # Date 1419011170 0 # Node ID 6ee836d795005f98ce0777b6ce35ab4032368a77 # Parent 0dbd0078d1c4549a0ddfa52a1fca6764d922e753 Add missing MIN() macro define diff -r 0dbd0078d1c4 -r 6ee836d79500 src/c-ringbuf/ringbuf.c --- 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 #include +#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