diff --git a/ringbuf.c b/ringbuf.c index b18ddb6..d30c5e4 100644 --- a/ringbuf.c +++ b/ringbuf.c @@ -23,6 +23,9 @@ #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