diff options
Diffstat (limited to 'src/c-ringbuf/ringbuf.c')
-rw-r--r-- | src/c-ringbuf/ringbuf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c-ringbuf/ringbuf.c b/src/c-ringbuf/ringbuf.c index 8b8a738..b1816d8 100644 --- a/src/c-ringbuf/ringbuf.c +++ b/src/c-ringbuf/ringbuf.c @@ -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 |